:root {
  --arco-blue: #0b3d5c;
  --arco-blue-2: #124a6d;
  --arco-orange: #e87722;
  --arco-beige: #f4efe7;
  --arco-sand: #ebe4d8;
  --arco-text: #1f2937;
}

.arco-body {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(232, 119, 34, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f5f1, #efeae2);
  color: var(--arco-text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.arco-shell {
  min-height: 100vh;
}

.arco-brand {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.arco-brand:hover {
  color: #fff;
}

.arco-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--arco-orange);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #fff;
  flex-shrink: 0;
}

.arco-topbar {
  background: linear-gradient(90deg, var(--arco-blue), var(--arco-blue-2));
  color: #fff;
  padding: 0;
  min-height: 3.5rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 8px 20px rgba(11, 61, 92, 0.18);
}

.arco-topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.35rem 1.15rem;
}

.arco-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.arco-brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.arco-brand-tag {
  font-size: 0.62rem;
  opacity: 0.72;
  font-weight: 400;
}

.arco-nav-toggle {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 0.2rem 0.45rem;
  font-size: 1.25rem;
  line-height: 1;
}

.arco-nav-toggle:focus {
  box-shadow: 0 0 0 0.15rem rgba(232, 119, 34, 0.35);
}

.arco-topbar .navbar-collapse {
  align-items: center;
  gap: 0.75rem;
}

.arco-topbar .nav-link {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.38rem 0.7rem;
  border-radius: 8px;
  white-space: nowrap;
}

.arco-topbar .nav-link:hover,
.arco-topbar .nav-link.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.arco-topbar-aside {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.arco-topbar-user {
  text-align: right;
  line-height: 1.15;
}

.arco-topbar-user-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.arco-topbar-user-role {
  font-size: 0.68rem;
  opacity: 0.7;
}

.arco-topbar-link {
  font-size: 0.8rem !important;
}

.arco-logout {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.arco-logout:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.arco-admin-menu {
  border: 0;
  box-shadow: 0 10px 28px rgba(11, 61, 92, 0.18);
  border-radius: 10px;
  padding: 0.35rem;
}

.arco-admin-menu .dropdown-item {
  border-radius: 8px;
  font-size: 0.86rem;
}

.arco-admin-menu .dropdown-item.active,
.arco-admin-menu .dropdown-item:active {
  background: var(--arco-blue);
}

.arco-muted { color: #6b7280; }
.tracking { letter-spacing: 0.14em; }

.arco-hero {
  background: linear-gradient(120deg, var(--arco-blue), #163f5a 55%, #1d4f6d);
  color: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(11, 61, 92, 0.18);
}

.arco-hero .subtitle {
  opacity: 0.85;
  max-width: 36rem;
}

.arco-card {
  background: #fff;
  border: 1px solid rgba(11, 61, 92, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.arco-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11, 61, 92, 0.1);
}

.arco-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--arco-beige);
  color: var(--arco-blue);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.arco-card.ghost {
  background: transparent;
  border-style: dashed;
  opacity: 0.75;
}

.btn-arco {
  background: var(--arco-orange);
  border-color: var(--arco-orange);
  color: #fff;
}

.btn-arco:hover {
  background: #d56a1a;
  border-color: #d56a1a;
  color: #fff;
}

.btn-arco-outline {
  border-color: var(--arco-blue);
  color: var(--arco-blue);
}

.arco-sitemap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.arco-sitemap-svg {
  display: block;
  width: 100%;
  height: auto;
}

.arco-sitemap-svg line {
  stroke: #d4d8de;
  stroke-width: 1;
}

.arco-sitemap-svg line.is-active,
.arco-sitemap-svg line.is-child {
  stroke: #0b3d5c;
}

.arco-sitemap-svg .hub {
  cursor: pointer;
}

.arco-sitemap-svg .hub circle {
  fill: #0b3d5c;
}
.arco-sitemap-svg .hub-title,
.arco-sitemap-svg .hub-sub,
.arco-sitemap-svg .sat-title,
.arco-sitemap-svg .sat-sub,
.arco-sitemap-svg .kid text {
  text-anchor: middle;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.arco-sitemap-svg .hub-title {
  fill: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.arco-sitemap-svg .hub-sub {
  fill: #fff;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.arco-sitemap-svg .sat {
  cursor: pointer;
}

.arco-sitemap-svg .sat circle {
  fill: #e8eaee;
}

.arco-sitemap-svg .sat-title {
  fill: #9aa3ad;
  font-size: 13px;
  font-weight: 700;
}

.arco-sitemap-svg .sat-sub {
  fill: #b0b7bf;
  font-size: 10px;
}

.arco-sitemap-svg .sat.is-active circle {
  fill: #0b3d5c;
}

.arco-sitemap-svg .sat.is-active .sat-title,
.arco-sitemap-svg .sat.is-active .sat-sub {
  fill: #fff;
}

.arco-sitemap-svg .sat.is-muted {
  opacity: 0.55;
  cursor: default;
}

.arco-sitemap-svg .kid {
  cursor: pointer;
}

.arco-sitemap-svg .kid:not([data-href]) {
  cursor: default;
}

.arco-sitemap-svg .kid circle {
  fill: #fff;
  stroke: #0b3d5c;
  stroke-width: 1.5;
}

.arco-sitemap-svg .kid text {
  fill: #0b3d5c;
  font-size: 11px;
  font-weight: 700;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(11, 61, 92, 0.16);
  border: 1px solid rgba(11, 61, 92, 0.08);
}

.login-card .arco-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.offre-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 7.5rem;
  padding: 0.35rem 0.55rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #e87722, #d56a1a);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.15;
  cursor: help;
  box-shadow: 0 6px 14px rgba(232, 119, 34, 0.28);
}

.offre-pill-nb {
  font-weight: 700;
  font-size: 0.85rem;
}

.offre-pill-ca {
  opacity: 0.95;
  white-space: nowrap;
}

.excel-wrap {
  max-height: calc(100vh - 260px);
  overflow: auto;
}

.excel-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.excel-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0b3d5c;
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #e87722;
  white-space: nowrap;
  padding: 0.65rem 0.75rem;
}

.excel-table tbody td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #e8ecef;
  vertical-align: middle;
  background: #fff;
}

.excel-table tbody tr:nth-child(even) td {
  background: #faf8f5;
}

.excel-table tbody tr.client-row {
  cursor: pointer;
}

.excel-table tbody tr.client-row:active td {
  background: #ffe8d4;
}

.devis-toolbar,
.devis-toolbar-form {
  align-items: stretch;
}

.devis-toolbar-input {
  min-width: 12rem;
  height: 2.5rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.devis-toolbar-btn {
  height: 2.5rem;
  min-height: 2.5rem;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.2;
}

.chiffrage-recap-total {
  background: linear-gradient(180deg, #faf7f2 0%, #f4efe7 100%);
}

.chiffrage-recap-row {
  cursor: pointer;
}

.chiffrage-recap-row:hover {
  background: rgba(11, 61, 92, 0.04);
}

.chiffrage-recap-row .chiffrage-marge-low {
  color: #c62828;
  font-weight: 600;
}

.chiffrage-recap-row .chiffrage-marge-mid {
  color: #e67e22;
  font-weight: 600;
}

.chiffrage-recap-row .chiffrage-marge-high {
  color: #2e7d32;
  font-weight: 600;
}

.chiffrage-prix-total {
  color: #0b3d5c;
}

.chiffrage-chart-card canvas {
  display: block;
  width: 100%;
  height: 320px;
}

.arco-content:has(.chiffrage-fiche) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chiffrage-fiche {
  max-width: 960px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.chiffrage-delete-confirm {
  border: 1px solid #f1aeb5;
  background: #f8d7da;
  color: #842029;
  border-radius: 0.45rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
}

.chiffrage-delete-confirm strong {
  display: block;
  font-size: 0.95rem;
}

.chiffrage-delete-confirm p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.chiffrage-form .form-label {
  margin-bottom: 0.25rem;
}

.chiffrage-grid-head {
  display: grid;
  grid-template-columns: 4.75rem 3.25rem 8.75rem minmax(8rem, 1fr) 8.5rem minmax(9rem, 1.2fr);
  gap: 0.75rem;
  align-items: end;
}

.chiffrage-amounts-island {
  background: #f7f9fb;
}

.chiffrage-amounts-island .card-body {
  padding: 1rem 1.15rem;
}

.chiffrage-amounts-island-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
}

.chiffrage-amounts-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
}

.chiffrage-amount-field {
  min-width: 0;
}

.chiffrage-amount-field:not(.chiffrage-amount-field--pct):not(.chiffrage-amount-field--vente) {
  width: 9.75rem;
}

.chiffrage-amount-field--pct {
  width: 4.75rem;
}

.chiffrage-amount-field--vente {
  width: 9.5rem;
  margin-left: auto;
}

.chiffrage-amounts-cluster .chiffrage-amount-field:nth-child(3) {
  width: 8.5rem;
}

.chiffrage-opt-head,
.chiffrage-option-row,
.chiffrage-sub-row {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) 7rem 4.25rem 8rem 4.25rem 7.25rem 7.5rem 2.25rem;
  gap: 0.5rem;
  align-items: end;
}

.chiffrage-option-block {
  padding-bottom: 0.55rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid rgba(11, 61, 92, 0.08);
}

.chiffrage-option-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.chiffrage-option-row {
  align-items: start;
  padding-bottom: 0;
  border-bottom: 0;
  margin-bottom: 0;
}

.chiffrage-option-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.chiffrage-option-main .form-control {
  width: 100%;
}

.chiffrage-add-sub {
  border: 0;
  background: transparent;
  padding: 0;
  color: #e87722;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.chiffrage-add-sub:hover {
  text-decoration: underline;
}

.chiffrage-subs:empty {
  display: none;
}

.chiffrage-sub-row {
  align-items: center;
  margin-top: 0.35rem;
}

.chiffrage-prix-calc {
  background: #f4f7f8;
  font-variant-numeric: tabular-nums;
}

.chiffrage-sub-row .js-sub-designation {
  width: calc(100% - 1.1rem);
  margin-left: 1.1rem;
  background: #fbfaf7;
}

.chiffrage-sub-reste {
  margin-top: 0.25rem;
  padding-left: 1.1rem;
}

.chiffrage-sub-reste--ok {
  color: #1a9f5c;
  font-weight: 600;
}

.chiffrage-sub-reste--over {
  color: #c62828;
  font-weight: 600;
}

.chiffrage-form .no-spin {
  -moz-appearance: textfield;
}

.chiffrage-form .no-spin::-webkit-outer-spin-button,
.chiffrage-form .no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.chiffrage-form .js-money {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

@media (max-width: 760px) {
  .chiffrage-grid-head,
  .chiffrage-opt-head,
  .chiffrage-option-row,
  .chiffrage-sub-row {
    grid-template-columns: 1fr 1fr;
  }
  .chiffrage-amounts-island-body {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .chiffrage-amounts-cluster {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .chiffrage-amount-field,
  .chiffrage-amount-field--pct,
  .chiffrage-amounts-cluster .chiffrage-amount-field:nth-child(3),
  .chiffrage-amount-field--vente {
    width: auto;
  }
  .chiffrage-amount-field--vente {
    margin-left: 0;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(11, 61, 92, 0.08);
  }
  .chiffrage-opt-head {
    display: none;
  }
  .chiffrage-option-row .chiffrage-remove-option,
  .chiffrage-sub-row .chiffrage-remove-sub {
    grid-column: 2;
    justify-self: end;
  }
  .chiffrage-sub-gap {
    display: none;
  }
  .chiffrage-sub-row .js-sub-designation {
    width: 100%;
    margin-left: 0;
  }
}

.chiffrage-pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  flex-direction: column;
  background: #2b3035;
}
.chiffrage-pdf-viewer.is-open {
  display: flex !important;
}
.chiffrage-pdf-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(90deg, var(--arco-blue), var(--arco-blue-2));
  color: #fff;
}
.chiffrage-pdf-toolbar h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.chiffrage-pdf-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}
.chiffrage-pdf-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #525659;
}
.chiffrage-pdf-actions {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(11, 61, 92, 0.22);
}
.chiffrage-pdf-actions .btn {
  min-width: 7.5rem;
}
body.chiffrage-pdf-open {
  overflow: hidden;
}

.miller-timeline {
  padding: 0.65rem 0.5rem 0.85rem;
  min-height: 100%;
}

.miller-timeline-pdf {
  margin: 0 0.35rem 0.65rem;
}

.miller-timeline-snake {
  margin: 0;
  --snake-pad: 3.25rem;
  --snake-row-h: 8rem;
}

.projet-snake {
  --snake-ink: #0b3d5c;
  --snake-muted: #6b7c8c;
  --snake-pad: 5rem;
  --snake-row-h: 10rem;
  --snake-bridge: 1rem;
  --snake-line: 2px;
  margin: 0.5rem 0 1.5rem;
  padding: 1.25rem 0.35rem 0.75rem;
  background: linear-gradient(180deg, #faf7f2 0%, #f4efe7 100%);
  border-radius: 12px;
  overflow: hidden;
}

.projet-snake-stack {
  display: flex;
  flex-direction: column;
}

.projet-snake-row {
  position: relative;
  display: block;
  min-height: var(--snake-row-h);
  margin: 0;
  padding: 0;
}

.projet-snake-track {
  position: absolute;
  left: var(--snake-pad);
  right: var(--snake-pad);
  top: 50%;
  height: var(--snake-line);
  background: var(--snake-ink);
  transform: translateY(-50%);
  z-index: 0;
}

/* Pont : hauteur = gap entre rangées ; la courbe déborde jusqu’aux rails (50 %) */
.projet-snake-bridge {
  position: relative;
  height: var(--snake-bridge);
  flex: 0 0 auto;
  z-index: 1;
  pointer-events: none;
}

.projet-snake-bridge span {
  position: absolute;
  /* Relie le milieu de la rangée N au milieu de la rangée N+1 */
  top: calc(var(--snake-row-h) / -2);
  bottom: calc(var(--snake-row-h) / -2);
  width: var(--snake-pad);
  border: var(--snake-line) solid var(--snake-ink);
  box-sizing: border-box;
  background: transparent;
}

.projet-snake-bridge.is-right span {
  right: 0;
  border-left: 0;
  border-radius: 0 var(--snake-pad) var(--snake-pad) 0;
}

.projet-snake-bridge.is-left span {
  left: 0;
  border-right: 0;
  border-radius: var(--snake-pad) 0 0 var(--snake-pad);
}

.projet-snake-nodes {
  position: absolute;
  left: var(--snake-pad);
  right: var(--snake-pad);
  top: 0;
  bottom: 0;
  z-index: 2;
}

.projet-snake-node {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  z-index: 2;
  transform: translateX(-50%);
}

.projet-snake-mid {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.projet-snake-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--snake-ink);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--snake-ink);
  z-index: 2;
  flex: 0 0 auto;
}

.projet-snake-stem {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 1.15rem;
  background: var(--snake-ink);
  opacity: 0.45;
  transform: translateX(-50%);
  pointer-events: none;
}

.projet-snake-stem.is-up {
  bottom: 100%;
  top: auto;
}

.projet-snake-stem.is-down {
  top: 100%;
  bottom: auto;
}

.projet-snake-node.is-above .projet-snake-stem.is-down,
.projet-snake-node.is-below .projet-snake-stem.is-up {
  display: none;
}

.projet-snake-card {
  position: absolute;
  width: 9.25rem;
  max-width: 38vw;
  min-width: 0;
}

/* Texte à droite du trait */
.projet-snake-node.is-label-right .projet-snake-card {
  left: 2px;
  text-align: left;
}

/* Texte à gauche du trait */
.projet-snake-node.is-label-left .projet-snake-card {
  right: 2px;
  text-align: right;
}

.projet-snake-node.is-above .projet-snake-card {
  bottom: calc(50% + 0.5rem);
}

.projet-snake-node.is-below .projet-snake-card {
  top: calc(50% + 0.5rem);
}

.projet-snake-date {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--snake-ink);
  margin: 0.15rem 0 0.1rem;
}

.projet-snake-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--snake-ink);
  line-height: 1.25;
}

.projet-snake-detail {
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--snake-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  word-break: break-word;
}

.projet-snake-extra {
  margin-top: 0.2rem;
  font-size: 0.62rem;
  color: #9aa8b5;
  line-height: 1.3;
}

.projet-snake-node.is-jalon .projet-snake-dot,
.projet-snake-node.is-jalon_archive .projet-snake-dot {
  background: #e87722;
  box-shadow: 0 0 0 1.5px #e87722;
}

.projet-snake-node.is-rdv_chiffrage .projet-snake-dot {
  background: #c2185b;
  box-shadow: 0 0 0 1.5px #c2185b;
}

.projet-snake-node.is-statut_aps .projet-snake-dot {
  background: #0b63c7;
  box-shadow: 0 0 0 1.5px #0b63c7;
}

.projet-snake-node.is-planning_move .projet-snake-dot {
  background: #6b7c8c;
  box-shadow: 0 0 0 1.5px #6b7c8c;
}

.projet-snake-node.is-code_attribue .projet-snake-dot,
.projet-snake-node.is-projet_cree .projet-snake-dot {
  background: #0b3d5c;
}

.projet-snake-node.is-dessin_fait .projet-snake-dot,
.projet-snake-node.is-chiffrage_fait .projet-snake-dot {
  background: #1b5e20;
  box-shadow: 0 0 0 1.5px #1b5e20;
  width: 1rem;
  height: 1rem;
}

.projet-snake-node.is-high.is-above .projet-snake-card {
  bottom: calc(50% + 1.35rem);
}

.projet-snake-node.is-high.is-below .projet-snake-card {
  top: calc(50% + 1.35rem);
}

.projet-snake-node.is-high .projet-snake-label {
  color: #1b5e20;
}

@media (max-width: 520px) {
  .projet-snake {
    --snake-pad: 3rem;
    --snake-bridge: 0.75rem;
    --snake-row-h: 9rem;
  }
  .projet-snake-card {
    width: 7.5rem;
    max-width: 42vw;
  }
}

/* Ancienne liste verticale (fallback / autres usages) */
.projet-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem 0.75rem;
  border-left: 2px solid rgba(11, 61, 92, 0.12);
}

.projet-timeline-item {
  position: relative;
  padding: 0 0 1.15rem 1.15rem;
}

.projet-timeline-item:last-child {
  padding-bottom: 0;
}

.projet-timeline-dot {
  position: absolute;
  left: -0.42rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #0b3d5c;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(11, 61, 92, 0.2);
}

.projet-timeline-item[data-type="jalon"] .projet-timeline-dot,
.projet-timeline-item[data-type="jalon_archive"] .projet-timeline-dot {
  background: #e87722;
}

.projet-timeline-item[data-type="rdv_chiffrage"] .projet-timeline-dot {
  background: #c2185b;
}

.projet-timeline-item[data-type="statut_aps"] .projet-timeline-dot {
  background: #0b63c7;
}

.projet-timeline-item[data-type="planning_move"] .projet-timeline-dot {
  background: #6b7c8c;
}

.projet-timeline-card {
  background: #fff;
  border: 1px solid rgba(11, 61, 92, 0.1);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}

.projet-timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.72rem;
  color: #8a97a3;
  margin-bottom: 0.25rem;
}

.projet-timeline-projet {
  color: #0b3d5c;
  font-weight: 600;
}

.projet-timeline-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0b3d5c;
}

.projet-timeline-detail {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #5a6b78;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.projet-timeline-auteur {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: #9aa8b5;
}

.devis-projet-head[hidden],
.flux-commercial-row[hidden],
.devis-row[hidden] {
  display: none !important;
}

.devis-projet-banner {
  background: #0b3d5c;
  color: #fff;
}
.devis-projet-banner--orphan {
  background: #5a6b78;
}
.devis-projet-banner .devis-projet-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.affaire-team-dialog {
  max-width: 32rem;
}

#affaire-team .modal-content {
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(11, 61, 92, 0.18);
}

#affaire-team .modal-header {
  border-bottom-color: rgba(11, 61, 92, 0.08);
  padding: 1rem 1.25rem 0.85rem;
}

#affaire-team .modal-title {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a97a3;
}

#affaire-team .modal-body {
  padding: 1rem 1.25rem 0.35rem;
}

#affaire-team .modal-footer {
  border-top-color: rgba(11, 61, 92, 0.08);
  padding: 0.85rem 1.25rem 1rem;
}

.affaire-team-title {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a97a3;
  margin-bottom: 0.85rem;
}

.affaire-team-roles {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.affaire-team-role {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.affaire-team-role-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0b3d5c;
}

.affaire-team-people {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.7rem;
}

.affaire-team-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f4efe7;
  color: #0b3d5c;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
}

.affaire-team-chip-x {
  margin: 0;
  padding: 0 0.1rem;
  border: 0;
  background: transparent;
  color: #8a97a3;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.affaire-team-chip-x:hover {
  color: #0b3d5c;
}

.affaire-team-empty {
  font-size: 0.78rem;
  color: #b0bac4;
}

.affaire-team-add {
  max-width: 9.5rem;
  height: 1.7rem;
  padding: 0 0.4rem;
  border: 0;
  border-bottom: 1px solid rgba(11, 61, 92, 0.18);
  background: transparent;
  color: #6b7c8c;
  font-size: 0.75rem;
}

.affaire-team-add:focus {
  outline: none;
  border-bottom-color: #0b3d5c;
  color: #0b3d5c;
}

@media (max-width: 640px) {
  .affaire-team-role {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.flux-commercial-title {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a97a3;
  margin-bottom: 1rem;
}

.flux-commercial {
  --flux-ink: #0b3d5c;
  --flux-line: rgba(11, 61, 92, 0.12);
  --flux-bg: #f7f5f1;
  --flux-cols: 6;
  overflow: visible;
}

.flux-commercial-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.flux-commercial-table {
  --flux-grid: repeat(var(--flux-cols), minmax(0, 1fr));
  display: flex;
  flex-direction: column;
  min-width: 920px;
  gap: 0;
  overflow: visible;
}

.flux-commercial-thead,
.flux-commercial-row {
  display: grid;
  grid-template-columns: var(--flux-grid);
  gap: 0;
  align-items: stretch;
  width: 100%;
}

.flux-commercial-thead {
  margin-bottom: 0;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--flux-line);
  overflow: visible;
}

.flux-commercial-row {
  border-top: 0;
  border-bottom: 1px solid var(--flux-line);
  padding: 1rem 0;
}

.flux-commercial-row:last-child {
  border-bottom: 0;
}

.flux-commercial-cell--full {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.35rem 1rem;
}

.flux-commercial-empty-copy {
  font-size: 0.82rem;
  color: #8a97a3;
  letter-spacing: 0.01em;
}

.flux-commercial-cell--projet {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.15rem;
  padding: 0.15rem 1rem 0 0;
  min-width: 0;
}

.flux-commercial-cell--projet.flux-commercial-cell--head {
  justify-content: flex-start;
  align-items: flex-start;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a97a3;
  border: none;
  background: transparent;
  min-height: 0;
  padding: 0.15rem 1rem 0.15rem 0;
}

.flux-commercial-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.12rem;
  min-height: 0;
  padding: 0 0.75rem;
  border-left: 1px solid var(--flux-line);
}

.flux-commercial-cell--stage.flux-commercial-cell--head[data-stage="r0"] .flux-commercial-step {
  border-left-color: transparent;
}

.flux-commercial-step-code {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--flux-ink);
}

.flux-commercial-step-name {
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.2;
  color: #6b7c8c;
}

.flux-commercial-step-extra {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #b0bac4;
}

.flux-projet-name {
  font-weight: 800;
  color: #0b3d5c;
  font-size: 0.95rem;
  line-height: 1.2;
}

.flux-projet-meta {
  font-size: 0.72rem;
  color: #6b7c8c;
}

.flux-projet-planning,
.devis-projet-planning {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.flux-projet-pill {
  display: inline-block;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  background: #eef3f7;
  color: #0b3d5c;
}

.flux-projet-pill.is-dessin {
  background: #e3f2fd;
  color: #1565c0;
}

.flux-projet-pill.is-chiffrage {
  background: #fff3e0;
  color: #e65100;
}

.flux-projet-pill.is-rdv {
  background: #fce4ec;
  color: #c2185b;
}

.flux-projet-pill.is-empty {
  background: #f4f6f8;
  color: #8a97a3;
  border: 1px dashed #c5ced6;
}

/* Cadres : colonnes alignées, sans pastilles */
.flux-commercial-col-frame {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.15rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.flux-commercial-col-frame--head {
  display: none;
}

.flux-commercial-col-frame--body {
  height: 100%;
  min-height: 7.5rem;
  border-left: 1px solid var(--flux-line);
  padding: 0.15rem 0.75rem 0.35rem;
}

.flux-commercial-cell--stage {
  min-width: 0;
  width: 100%;
}

.flux-commercial-cell--stage.flux-commercial-cell--head {
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  border: none;
  background: transparent;
  padding: 0;
}

.flux-commercial-cell--stage[data-stage="r0"] .flux-commercial-col-frame--body {
  border-left-color: transparent;
}


.flux-commercial-versions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0;
  flex: 1;
}

.flux-commercial-version {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.35rem 0 0.45rem;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--flux-line);
  background: transparent;
  color: inherit;
}

.flux-commercial-version:last-child {
  border-bottom: 0;
}

.flux-commercial-version-link {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  text-decoration: none;
  color: inherit;
}

.flux-commercial-version-link:hover {
  color: inherit;
}

.flux-commercial-version:hover {
  box-shadow: none;
}

.flux-commercial-version.is-active {
  border-color: var(--flux-line);
  background: transparent;
  box-shadow: inset 2px 0 0 var(--arco-orange);
  padding-left: 0.55rem;
}

.flux-commercial-version.is-active:hover {
  border-color: var(--flux-line);
  box-shadow: inset 2px 0 0 var(--arco-orange);
}

.flux-commercial-version.is-old {
  border-color: var(--flux-line);
  background: transparent;
  color: #8a97a3;
}

.flux-commercial-version.is-old .flux-commercial-version-num {
  color: #8a97a3;
  font-weight: 500;
}

.flux-commercial-version.is-old .flux-commercial-version-meta {
  color: #b0bac4;
}

.flux-commercial-version-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: #0b3d5c;
}

.flux-commercial-version.is-active .flux-commercial-version-num {
  color: #0b3d5c;
}

.flux-commercial-version-meta {
  font-size: 0.68rem;
  color: #5a6b78;
}

.flux-commercial-version-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.flux-dup-btn {
  font-size: 0.65rem !important;
  line-height: 1.1 !important;
  padding: 0.18rem 0.35rem !important;
  white-space: nowrap;
}

.flux-commercial-empty {
  margin-top: auto;
  text-align: center;
  font-size: 0.72rem;
  color: #8a97a3;
  padding: 0.85rem 0.2rem 0.35rem;
}

.devis-projet-head td {
  background: #0b3d5c;
  color: #fff;
  font-weight: 600;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  vertical-align: middle;
}
.devis-projet-head .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}
.devis-projet-head--orphan td {
  background: #5a6b78;
}
.devis-projet-name {
  letter-spacing: 0.02em;
}
.devis-jalon-badge {
  background: #e8f1f6;
  color: #0b3d5c;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.config-workspace.is-locked .miller-add {
  display: none;
}
.plan-locked form[method="post"] {
  pointer-events: none;
  opacity: 0.45;
}
.fe-page.is-locked .fe-hint {
  opacity: 0.7;
}

.tooltip-inner {
  max-width: 260px;
  text-align: left;
}

/* Configurateur offre — colonnes Miller (gauche → droite) */
.arco-content:has(.config-grid),
.arco-content:has(.offre-workspace) {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.arco-body:has(.arco-home) {
  background: #eef1f5;
}

.arco-content:has(.arco-home) {
  padding-top: 1.15rem;
  padding-bottom: 2rem;
}

.arco-home {
  max-width: 1280px;
  margin: 0 auto;
}

.arco-home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.15rem 1.4rem 1.25rem;
  margin-bottom: 1.1rem;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(232, 119, 34, 0.95) 0 0.28rem, transparent 0.28rem),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(115deg, #0b3d5c 0%, #124a6d 58%, #16324a 100%);
  background-size: auto, 28px 28px, 28px 28px, auto;
  box-shadow: 0 12px 28px rgba(11, 61, 92, 0.16);
}

.arco-home-hero-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0.45rem;
}

.arco-home-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.arco-home-hero-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.arco-home-hero-sub {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

.arco-home-hero-date {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 0.15rem;
}

.arco-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.arco-home-card {
  display: flex;
  flex-direction: column;
  min-height: 16.5rem;
  background: #fff;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 40, 70, 0.06);
  padding: 1rem 1rem 0.85rem;
}

.arco-home-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.85rem;
}

.arco-home-card-head:hover .arco-home-card-title {
  color: #0b3d5c;
}

.arco-home-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #0b3d5c;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.arco-home-card-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0b3d5c;
  line-height: 1.2;
}

.arco-home-card-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #7b8793;
  line-height: 1.35;
}

.arco-home-card-links {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  flex: 1;
}

.arco-home-card-links a,
.arco-home-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.42rem 0;
  text-decoration: none;
  color: #0b3d5c;
  font-size: 0.84rem;
  font-weight: 500;
}

.arco-home-card-links a i,
.arco-home-card-foot i {
  color: #b0bac4;
  font-size: 0.78rem;
}

.arco-home-card-links a:hover,
.arco-home-card-foot:hover {
  color: #0b3d5c;
}

.arco-home-card-links a:hover i,
.arco-home-card-foot:hover i {
  color: #e87722;
}

.arco-home-card-foot {
  margin-top: 0.35rem;
  border-top: 1px solid #eef1f4;
  padding-top: 0.7rem;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .arco-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .arco-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .arco-home-hero-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .arco-home-grid {
    grid-template-columns: 1fr;
  }
}

/* Nouvelle interface offre : rail R + Description + articles/texte */
.offre-workspace {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: stretch;
  min-height: calc(100vh - 11rem);
}

.offre-r-rail {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.35rem 0;
}

.offre-r-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.offre-r-rail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 2.55rem;
  border: 1.5px solid #0b3d5c;
  border-radius: 10px;
  background: #fff;
  color: #0b3d5c;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  line-height: 1.05;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.offre-r-rail-ops {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  justify-content: center;
}

.offre-r-rail-op-form {
  display: contents;
}

.offre-r-rail-op {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: 1px solid #c5ced6;
  border-radius: 4px;
  background: #fff;
  color: #0b3d5c;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.offre-r-rail-op:hover:not(:disabled) {
  background: #eef3f7;
  border-color: #0b3d5c;
}

.offre-r-rail-op:disabled {
  opacity: 0.35;
  cursor: default;
}

a.offre-r-rail-btn:hover {
  background: #eef3f7;
  color: #0b3d5c;
}

.offre-r-rail-btn.is-current {
  background: #0b3d5c;
  color: #fff;
}

.offre-r-rail-btn.is-old:not(.is-current) {
  border-color: #9aa8b5;
  color: #6b7c8c;
  background: #eef1f4;
}

.offre-r-rail-btn.is-empty {
  border-style: dashed;
  border-color: #c5ced6;
  color: #a0aab4;
  background: #f7f8f9;
  cursor: pointer;
}
button.offre-r-rail-btn {
  font: inherit;
  padding: 0;
}

.offre-r-rail-btn.drag-over {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
  background: #e6fffa;
}

.docs-structure-stack {
  grid-template-rows: minmax(9rem, 0.36fr) minmax(16rem, 0.64fr);
}

.docs-structure-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0.65rem;
  min-height: 0;
}

.docs-structure-bottom .offre-pane {
  min-height: 0;
}

@media (max-width: 900px) {
  .docs-structure-bottom {
    grid-template-columns: 1fr;
  }
}

.offre-workspace-main {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  gap: 0.65rem;
  min-width: 0;
  width: 100%;
}

.offre-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1.5px solid #c5ced6;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.offre-pane--chapters {
  min-height: calc(100vh - 11rem);
  max-height: calc(100vh - 11rem);
}

.offre-pane-stack {
  display: grid;
  grid-template-rows: minmax(10rem, 0.42fr) minmax(14rem, 0.58fr);
  gap: 0.65rem;
  min-width: 0;
  min-height: calc(100vh - 11rem);
}

.offre-pane-head {
  flex: 0 0 auto;
  padding: 0.55rem 0.75rem;
  background: #0b3d5c;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.offre-pane-body {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
  background: #fafbfc;
}

.offre-pane-body .miller-row.is-picked {
  background: #e8f5e9;
}

.config-workspace {
  width: 100%;
}
.config-workspace.is-locked .miller-add,
.config-workspace.is-locked .miller-remove {
  display: none;
}
.offre-workspace.is-locked .miller-add,
.offre-workspace.is-locked .miller-remove {
  display: none;
}
.config-phase-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  background: #e8eaec;
  padding: 0.5rem 0.5rem 0;
  border-radius: 12px 12px 0 0;
}
.config-phase-tabs {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-width: 0;
}
.config-phase-tab {
  appearance: none;
  border: 0;
  margin: 0;
  background: #d6dde3;
  color: var(--arco-blue);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.35rem 0.85rem 1.15rem;
  border-radius: 12px 12px 0 0;
  line-height: 1.15;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.config-phase-check {
  display: none;
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  opacity: 0.4;
}
.config-workspace.is-print-select .config-phase-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.config-phase-tab.is-print .config-phase-check {
  opacity: 1;
  background: #1a9f5c;
  border-color: #1a9f5c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.config-phase-tab.is-print .config-phase-check::after {
  content: "✓";
}
.config-phase-tab:hover {
  background: #c5d0d9;
  color: var(--arco-blue);
}
.config-phase-tab.is-active {
  background: var(--arco-blue);
  color: #fff;
}
.config-phase-tab.is-active:hover {
  background: var(--arco-blue-2);
  color: #fff;
}
.config-phase-tab:focus-visible {
  outline: 2px solid var(--arco-blue);
  outline-offset: 2px;
}
.config-grid {
  min-height: calc(100vh - 220px);
  width: 100%;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}
.config-cols {
  display: grid;
  min-height: calc(100vh - 180px);
  width: 100%;
}
.config-cols-4 {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}
.config-cols-3 {
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(280px, 1.45fr);
}
.config-col {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d9dee5;
  min-width: 0;
  min-height: 0;
  background: #fff;
}
.config-col:last-child { border-right: none; }
.config-col-head {
  background: #0b3d5c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 0.85rem;
  flex-shrink: 0;
}
.config-col-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
  background: #fff;
}
.miller-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef1f4;
  background: #fff;
  text-align: left;
  padding: 0.85rem 0.9rem;
  font-size: 0.92rem;
  color: #1f2937;
}
.miller-row .struct-del-article {
  opacity: 0.55;
  text-decoration: none !important;
  line-height: 1;
  flex-shrink: 0;
}
.miller-row:hover .struct-del-article,
.miller-row.active .struct-del-article {
  opacity: 1;
}
.miller-row.active .struct-del-article {
  color: #ffb4b4 !important;
}
.miller-row:hover { background: #f4f6f8; }
.miller-row.active {
  background: #0b3d5c;
  color: #fff;
}
.miller-row.picked {
  background: #e5f6ee;
  color: #0b3d5c;
  box-shadow: inset 4px 0 0 #1a9f5c;
}
.miller-row.picked.active {
  background: #1a9f5c;
  color: #fff;
  box-shadow: inset 4px 0 0 #0d6b3c;
}
.miller-row.picked .badge {
  background: rgba(255, 255, 255, 0.85) !important;
}
.miller-row.picked.active .badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}
.miller-row-minus {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #c45c5c;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.miller-row.active .miller-row-minus {
  color: #ffb4b4;
}
.miller-row-minus:hover {
  color: #9a2f2f;
  background: rgba(196, 92, 92, 0.12);
}
.docs-ouvrages-dialog {
  max-width: 28rem;
}
.docs-ouvrages-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-height: min(28rem, 60vh);
  overflow: auto;
}
.docs-ouvrages-phase {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a97a3;
  padding: 0.65rem 0.35rem 0.25rem;
}
.docs-ouvrages-phase:first-child {
  padding-top: 0;
}
.docs-ouvrages-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #0b3d5c;
  font-size: 0.86rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.4rem;
}
.docs-ouvrages-item:hover {
  background: #f4efe7;
}
.miller-ok-mark {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #1a9f5c;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}
.miller-ok-empty {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 1.5px solid #c5ced6;
  background: transparent;
}
.miller-row.picked.active .miller-ok-mark {
  background: #fff;
  color: #1a9f5c;
}
.miller-ok-empty[data-toggle-print] {
  cursor: pointer;
}

.miller-r-group-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fafbfc;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0b3d5c;
  padding: 0.55rem 0.75rem 0.3rem;
  border-bottom: 1px solid #e4e9ee;
}
.miller-r-group-head span {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #8a97a3;
  margin-left: 0.2rem;
}
.miller-r-group-empty {
  padding: 0.35rem 0.75rem 0.55rem;
  font-size: 0.75rem;
}
.miller-r-group.is-flash {
  background: #e8f4fb;
}
.miller-row.is-catalog-only {
  opacity: 0.72;
}
.miller-row.is-catalog-only:hover {
  opacity: 1;
}
.miller-ok-empty[data-toggle-print]:hover {
  border-color: #1a9f5c;
  background: rgba(26, 159, 92, 0.12);
}
.miller-row.active:not(.picked) .miller-ok-empty[data-toggle-print]:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.miller-row-chapter,
.miller-row-drag {
  cursor: grab;
  -webkit-user-drag: element;
}
.miller-row-chapter.is-dragging,
.miller-row-drag.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}
.miller-row.drag-over-before {
  box-shadow: inset 0 3px 0 #e87722;
}
.miller-row.drag-over-after {
  box-shadow: inset 0 -3px 0 #e87722;
}
.miller-row.drag-over-into {
  outline: 2px dashed #e87722;
  outline-offset: -2px;
  background: #fff4ea;
}
.config-phase-tab.drag-over {
  outline: 2px dashed #e87722;
  outline-offset: -2px;
  background: #fff4ea;
  color: #c45c26;
}

.miller-ctx {
  position: fixed;
  z-index: 4000;
  min-width: 220px;
  padding: 4px;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}
.miller-ctx[hidden] {
  display: none;
}
.miller-ctx-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  color: #1f2937;
  font-size: 0.875rem;
  line-height: 1.3;
  cursor: pointer;
}
.miller-ctx-item:hover,
.miller-ctx-item:focus {
  background: #f2f4f7;
  color: #0b3d5c;
  outline: none;
}
.miller-ctx-sep {
  height: 1px;
  background: #e4e7ec;
  margin: 4px 6px;
}

/* Canvas graphe nœuds (Base documentaire) */
.gcanvas-open { overflow: hidden; }
.gcanvas-root {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  background: #1b2430;
  color: #eef2f5;
}
.gcanvas-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  background: #141b24;
  border-bottom: 1px solid #2a3544;
}
.gcanvas-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ea0b3;
}
.gcanvas-bar h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}
.gcanvas-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.gcanvas-status {
  font-size: 0.8rem;
  color: #9aabbb;
}
.gcanvas-status.is-err { color: #f0a3a3; }
.gcanvas-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: grab;
  background-color: #1b2430;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}
.gcanvas-stage.is-panning { cursor: grabbing; }
.gworld {
  position: absolute;
  left: 0;
  top: 0;
  width: 2200px;
  height: 1600px;
  transform-origin: 0 0;
}
.gcanvas-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.gcanvas-svg path.glink-hit,
.gcanvas-svg path.glink-trigger {
  pointer-events: stroke;
  cursor: pointer;
}
.glink-hit {
  stroke: rgba(232, 163, 23, 0.01);
  stroke-width: 22;
}
.glink-tree {
  stroke: #7d8b9a;
  stroke-width: 1.5;
  stroke-dasharray: 7 6;
  pointer-events: none;
}
.glink-trigger {
  stroke: #e8a317;
  stroke-width: 2;
  stroke-dasharray: 5 5;
}
.glink-del {
  position: absolute;
  z-index: 6;
  width: 22px;
  height: 22px;
  border: 0;
  background: #e07a2f;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
}
.glink-del:hover { background: #c45f1c; }
.gnode {
  position: absolute;
  z-index: 3;
  width: 248px;
  min-height: 88px;
  padding: 0.85rem 1rem 0.8rem;
  background: #2a3340;
  border: 1px solid #3d4a5a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  cursor: grab;
  user-select: none;
}
.gnode-chapter {
  background: #2c3d52;
  border-color: #5a7ea0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 4px 0 0 #6a93b8;
}
.gnode-family {
  background: #2c4238;
  border-color: #5a8a72;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 4px 0 0 #6a9e7e;
  padding-bottom: 0;
}
.gnode-article {
  background: #32343c;
  border-color: #4a4e58;
}
.gnode.is-linking,
.gnode-kid.is-linking {
  border-color: #e8a317;
  box-shadow: 0 0 0 1px #e8a317;
}
.gnode-fold {
  position: absolute;
  top: 10px;
  left: -11px;
  width: 22px;
  height: 22px;
  border: 1px solid #5a8a72;
  background: #1e2c28;
  color: #c5e0d4;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
}
.gnode-fold:hover { background: #2a4a40; }
.gnode-kids {
  margin: 0.7rem -1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.gnode-kid {
  position: relative;
  padding: 0.5rem 2.1rem 0.5rem 1.05rem;
  background: #32343c;
  border-top: 1px solid #3d424c;
  cursor: pointer;
  min-height: 52px;
}
.gnode-kid:last-child {
  border-bottom: 0;
}
.gnode-kid .gnode-title {
  font-size: 0.88rem;
  font-weight: 600;
  padding-right: 0;
}
.gnode-kid .gnode-meta {
  margin-top: 0.28rem;
}
.gnode-kid .gnode-plus {
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  font-size: 0.85rem;
}
.gnode-title {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding-right: 1.4rem;
  line-height: 1.25;
}
.gnode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.55rem;
}
.gnode-pill {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #9aa8b6;
  color: #c5d0db;
  padding: 0.12rem 0.45rem;
}
.gnode-pill-ok {
  border-color: #3dba7a;
  color: #5fd89a;
}
.gnode-pill-warn {
  border-color: #e8a317;
  color: #f0c35a;
}
.gnode-who {
  font-size: 0.72rem;
  color: #8ea0b3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gnode-plus {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  border: 0;
  background: #e07a2f;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.gnode-plus:hover { background: #f08a3d; }
.miller-ok-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #1a9f5c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.icpe-chip {
  font-weight: 500;
  text-align: left;
  white-space: normal;
  max-width: 28rem;
}
.icpe-chip .btn-link {
  line-height: 1;
  vertical-align: baseline;
}
.miller-row ~ .miller-detail {
  border-top: 1px solid #d9dee5;
}
.miller-detail.picked {
  background: #f0faf4;
  border-left: 4px solid #1a9f5c;
}
.miller-files {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}
.miller-files-title {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.miller-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.miller-file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}
.miller-file-item img {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
}
.miller-file-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
  border-radius: 6px;
  background: #0b3d5c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.miller-file-name {
  flex: 1;
  font-size: 0.8rem;
  color: #0b3d5c;
  text-decoration: none;
  word-break: break-word;
}
.miller-file-name:hover {
  text-decoration: underline;
}
.miller-file-add {
  display: inline-block;
  cursor: pointer;
  margin: 0;
}
.miller-file-add input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.article-kind-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0.7rem 0 0.8rem;
}
.article-kind-tab {
  flex: 1;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #0b3d5c;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.42rem 0.3rem;
  cursor: pointer;
}
.article-kind-tab:hover {
  background: #f3f4f6;
}
.article-kind-tab.is-active {
  background: #0b3d5c;
  color: #fff;
  border-color: #0b3d5c;
}
.article-kind-panel[hidden] {
  display: none !important;
}
.article-text-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0 0 0.55rem;
}
.article-text-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0b3d5c;
  cursor: pointer;
  user-select: none;
}
.article-text-mode input {
  margin: 0;
  accent-color: #0b3d5c;
  width: 0.95rem;
  height: 0.95rem;
}
.article-fiche-espace {
  padding: 0.28rem 0.55rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  align-self: center;
}
.article-format-out {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.65rem 0.75rem;
}
.article-format-body {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #0b3d5c;
  white-space: normal;
}
.miller-file-source {
  font-size: 0.65rem;
  color: #6b7280;
  white-space: nowrap;
}
.miller-label { flex: 1; }
.miller-chevron {
  opacity: 0.55;
  font-size: 1.1rem;
  line-height: 1;
}
.miller-qcm {
  border-top: 1px solid #d9dee5;
  background: #fafbfc;
  padding-bottom: 0.75rem;
}
.miller-opt {
  margin: 0.25rem 0.75rem;
}
.config-opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}
.config-opt.on { background: #f3ebe0; }
.config-opt input { margin: 0; }

@media (max-width: 900px) {
  .config-cols-4,
  .config-cols-3 {
    grid-template-columns: 1fr 1fr;
  }
  .config-col {
    min-height: 240px;
    border-bottom: 1px solid #d9dee5;
  }
  .offre-workspace {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .offre-r-rail {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .offre-workspace-main {
    grid-template-columns: 1fr;
  }
  .offre-pane--chapters,
  .offre-pane-stack {
    min-height: 16rem;
  }
}
@media (max-width: 560px) {
  .config-cols-4,
  .config-cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .arco-topnav {
    flex-direction: column;
    align-items: stretch;
    padding: 0.35rem 0 0.15rem;
  }
  .arco-topbar-aside {
    margin-left: 0;
    width: 100%;
    padding: 0.65rem 0 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: space-between;
  }
  .arco-topbar-user {
    text-align: left;
  }
}

.prompt-row .prompt-title {
  color: #0b3d5c;
  font-weight: 600;
}
.prompt-row .prompt-title:hover {
  color: #e87722;
}
.prompt-list .prompt-row {
  border-color: rgba(11, 61, 92, 0.08);
}
.prompt-list .prompt-row:hover {
  background: #f8f5f0;
}
.prompt-row .badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.offre-apercu-page {
  margin: 0;
  min-height: 100vh;
  background: #d8dee6;
  font-family: Helvetica, Arial, sans-serif;
}
.offre-apercu-hint {
  margin: 0;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #0c2340;
  color: #c5a059;
}
.offre-apercu-sheet {
  width: min(210mm, calc(100% - 2.4rem));
  min-height: 297mm;
  margin: 1.2rem auto 2rem;
  background: #fff;
  padding: 18mm 18mm 22mm;
  box-shadow: 0 12px 40px rgba(12, 35, 64, 0.18);
  color: #111827;
}
.offre-apercu-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1.1rem;
  border-bottom: 2px solid #0b3d5c;
}
.offre-apercu-meta strong {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c5a059;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.offre-apercu-meta span {
  font-size: 0.82rem;
  color: #0c2340;
}
.offre-apercu-ch {
  margin: 0 0 0.55rem;
  color: #0b3d5c;
  font-size: 13pt;
  font-weight: 700;
  line-height: 1.25;
}
.offre-apercu-ens {
  margin: 0.85rem 0 0.4rem;
  color: #1f4e6b;
  font-size: 11pt;
  font-weight: 700;
  line-height: 1.3;
}
.offre-apercu-art {
  margin: 0.7rem 0 0.35rem;
  padding-left: 12px;
  color: #111827;
  font-size: 10pt;
  font-weight: 700;
  line-height: 1.3;
}
.offre-apercu-icpe {
  margin: 0 0 0.4rem;
  padding-left: 18px;
  color: #0b3d5c;
  font-size: 8.5pt;
}
.offre-apercu-body {
  margin: 0 0 0.28rem;
  padding-left: 18px;
  color: #374151;
  font-size: 9pt;
  line-height: 1.22;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.offre-apercu-body.is-ens {
  padding-left: 0;
}
.offre-apercu-list {
  margin: 0 0 0.28rem;
  padding-left: 2.15rem;
}
.offre-apercu-list li {
  margin: 0 0 0.05rem;
  padding: 0;
  text-align: justify;
}
.offre-apercu-empty {
  margin: 0.4rem 0;
  color: #9ca3af;
  font-size: 9pt;
  font-style: italic;
}
.offre-apercu-prompt {
  margin: 0.4rem 0 0.8rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border-left: 3px solid #c5a059;
  color: #6b7280;
  font-size: 8pt;
  line-height: 1.4;
  white-space: pre-wrap;
}
.offre-apercu-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0.5rem 0 0.7rem;
  padding-left: 18px;
}
.offre-apercu-photos img {
  max-width: 120px;
  max-height: 90px;
  object-fit: contain;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.offre-apercu-pdfs {
  margin: 0;
  padding-left: 18px;
  color: #6b7280;
  font-size: 8pt;
}
.offre-apercu-loc {
  margin: 0.9rem 0 0;
  padding: 0.55rem 0.7rem;
  border-top: 1px solid #e5e7eb;
}
.offre-apercu-loc strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #0b3d5c;
  font-size: 9.5pt;
}
.offre-apercu-loc ul,
.miller-localisation ul {
  margin: 0 0 0.35rem;
  padding-left: 1.15rem;
}
.offre-apercu-loc .loc-niveau,
.miller-localisation .loc-niveau {
  margin: 0.35rem 0 0.05rem;
  font-weight: 700;
  color: #1f4e6b;
  font-size: 0.82rem;
}
.offre-apercu-loc li {
  margin: 0.1rem 0;
  font-size: 9.5pt;
  color: #111827;
}
.miller-localisation {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid #d5dee6;
  color: #12233a;
  font-size: 0.82rem;
}
.miller-localisation strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #0b3d5c;
}
.miller-localisation ul {
  margin: 0;
  padding-left: 1.15rem;
}
.miller-localisation li {
  margin: 0.12rem 0;
}
.fe-sheet-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: -0.2rem -0.2rem 1rem;
  padding: 0.85rem 1rem;
  background: #123047;
  color: #fff;
  border-radius: 6px;
}
.fe-sheet-mark {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #e36b1e;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fe-sheet-banner p {
  margin: 0;
  font-size: 7.5pt;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0c9a0;
}
.fe-sheet-banner h1 {
  margin: 0.1rem 0 0;
  font-size: 16pt;
  font-weight: 700;
}
.fe-sheet-banner dl {
  margin: 0 0 0 auto;
  display: flex;
  gap: 1.2rem;
  text-align: right;
}
.fe-sheet-banner dt {
  font-size: 7pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0c9a0;
}
.fe-sheet-banner dd {
  margin: 0;
  font-size: 9.5pt;
}
.fe-sheet-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #d8dee6;
  border-radius: 4px;
  margin-bottom: 1.1rem;
}
.fe-sheet-info > div {
  padding: 0.55rem 0.75rem;
  border-right: 1px solid #d8dee6;
}
.fe-sheet-info > div:last-child {
  border-right: 0;
}
.fe-sheet-info span {
  display: block;
  font-size: 7pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7c8d;
}
.fe-sheet-info strong {
  display: block;
  margin-top: 0.15rem;
  color: #123047;
  font-size: 9.5pt;
}
.fe-sheet {
  margin: 0 0 1.6rem;
  page-break-after: always;
}
.fe-sheet-piece {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.fe-sheet-piece span,
.fe-sheet-piece dt {
  display: block;
  font-size: 7pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7c8d;
}
.fe-sheet-piece h2 {
  margin: 0.1rem 0;
  color: #123047;
  font-size: 16pt;
}
.fe-sheet-piece p {
  margin: 0;
  color: #6b7c8d;
  font-size: 9pt;
}
.fe-sheet-piece dl {
  display: flex;
  gap: 1.2rem;
  margin: 0;
  text-align: right;
}
.fe-sheet-piece dd {
  margin: 0;
  color: #123047;
  font-weight: 700;
  font-size: 10pt;
}
.fe-sheet-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.fe-sheet-metrics > div {
  border: 1px solid #d8dee6;
  border-radius: 4px;
  padding: 0.45rem 0.5rem;
}
.fe-sheet-metrics span {
  display: block;
  font-size: 6.5pt;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7c8d;
}
.fe-sheet-metrics strong {
  display: block;
  margin-top: 0.15rem;
  color: #123047;
  font-size: 9.5pt;
}
.fe-sheet-table-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 0.35rem;
}
.fe-sheet-table-head h3 {
  margin: 0;
  color: #123047;
  font-size: 8.5pt;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fe-sheet-table-head span {
  color: #6b7c8d;
  font-size: 8.5pt;
}
.fe-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9pt;
}
.fe-sheet-table th {
  background: #123047;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 7.5pt;
  text-align: left;
  padding: 0.4rem 0.55rem;
}
.fe-sheet-table td {
  border: 1px solid #e5e7eb;
  padding: 0.4rem 0.55rem;
  color: #334155;
}
.fe-sheet-table td:last-child {
  color: #111827;
  font-weight: 700;
}
.fe-sheet-table td i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.fe-sheet-table .is-empty {
  color: #9ca3af;
  font-style: italic;
  font-weight: 400;
}
.syn-exec {
  margin-top: 0.4rem;
}
.syn-exec-sec {
  margin: 1.05rem 0 1.25rem;
}
.syn-exec-sec h3 {
  margin: 0 0 0.45rem;
  color: #0b3d5c;
  font-size: 9.5pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #d8dee6;
  padding-bottom: 0.25rem;
}
.syn-exec-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1.1rem;
  margin: 0;
}
.syn-exec-dl dt {
  margin: 0;
  color: #6b7c8d;
  font-size: 7.5pt;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.syn-exec-dl dd {
  margin: 0.05rem 0 0;
  color: #123047;
  font-size: 10pt;
  font-weight: 650;
}
.syn-exec-p {
  margin: 0 0 0.55rem;
  color: #334155;
  font-size: 10pt;
  line-height: 1.45;
  text-align: justify;
}
.syn-exec-table {
  margin-top: 0.45rem;
}
.syn-exec-total {
  margin: 0 0 0.55rem;
  color: #123047;
  font-size: 11pt;
}
.geo-sheet {
  margin-top: 0.35rem;
}
.geo-sheet-src {
  margin: 0 0 0.7rem;
  font-size: 8.5pt;
  color: #6b7c8d;
}
.geo-sheet-src a {
  color: #0b3d5c;
}
.geo-miller-note {
  margin-bottom: 0.4rem;
}
@media (max-width: 720px) {
  .syn-exec-dl {
    grid-template-columns: 1fr;
  }
}
.offre-apercu-fiche {
  margin: 1.1rem 0 1.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e5e7eb;
}
.offre-apercu-fiche:last-of-type {
  border-bottom: 0;
}
.offre-apercu-fiche-meta {
  margin: 0.15rem 0;
  color: #3d5f7a;
  font-size: 9.5pt;
}
.offre-apercu-fiche-arts {
  margin: 0.7rem 0 0.25rem;
  color: #0b3d5c;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.offre-apercu-foot {
  margin-top: 2.4rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  color: #9ca3af;
  font-size: 8pt;
}
.offre-apercu-fallback {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: rgba(12, 35, 64, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.offre-apercu-fallback[hidden] {
  display: none;
}
.offre-apercu-fallback-win {
  width: min(920px, 100%);
  max-height: 92vh;
  background: #d8dee6;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.offre-apercu-fallback-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.75rem;
  background: #0c2340;
  color: #fff;
  font-size: 0.8rem;
}
.offre-apercu-fallback-bar button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.offre-apercu-fallback-scroll {
  overflow: auto;
  min-height: 0;
}
.offre-apercu-fallback .offre-apercu-sheet {
  margin: 1rem auto;
}

#organigramme-modal .org-modal-dialog {
  max-width: min(96vw, 1600px);
  width: 96vw;
  margin: 0.6rem auto;
}
#organigramme-modal .modal-content {
  min-height: min(94vh, 980px);
}
#organigramme-modal .modal-body {
  min-height: calc(94vh - 8rem);
}

.org-board {
  position: relative;
  min-height: 28rem;
}
.org-splines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.org-splines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.org-splines path.org-spline-halo {
  fill: none;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 3.2;
  stroke-linecap: round;
}
.org-splines path.org-spline-line {
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.org-splines circle {
  stroke: #fff;
  stroke-width: 1;
}
.org-editor-grid {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2.25rem;
  width: 100%;
}
.org-services-pair {
  display: flex;
  justify-content: space-between;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.4rem 0.45rem 0.5rem;
  border: 1px dashed rgba(11, 61, 92, 0.28);
  border-radius: 14px;
  background: rgba(244, 247, 250, 0.55);
}
.org-col {
  border: 1px solid rgba(11, 61, 92, 0.12);
  border-radius: 12px;
  background: #fff;
  flex: 0 0 10.75rem;
  width: 10.75rem;
  max-width: 10.75rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(7, 44, 70, 0.08);
}
.org-col header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #0b3d5c, #12557f);
}
.org-col-hint {
  margin: 0;
  padding: 0.28rem 0.45rem 0;
  font-size: 0.65rem;
  line-height: 1.25;
  color: #6b7c8a;
  background: #f4f7fa;
}
.org-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  min-height: 16rem;
  max-height: 32rem;
  flex: 1;
  overflow: auto;
  background: #f4f7fa;
}
.org-item {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-bottom: 0.4rem;
  padding: 0.35rem 0.4rem 0.4rem;
  background: #fff;
  border: 1px solid rgba(11, 61, 92, 0.16);
  border-radius: 8px;
  cursor: grab;
  user-select: none;
}
.org-item.is-over {
  border-color: #e87722;
  background: #fff4e6;
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.22);
}
.org-item.is-over-boss {
  border-color: #7c3aed;
  background: #f5f0ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}
.org-item.is-copy {
  cursor: default;
}
.org-item.is-copy .org-grip {
  opacity: 0.35;
}
.org-item-label {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: #0b3d5c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-group {
  list-style: none;
  margin: 0.2rem 0 0.35rem;
  padding: 0.15rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7c8a;
}
.org-item.is-dragging {
  opacity: 0.55;
}
.org-item-head {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.org-grip {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.9rem;
  background-image: radial-gradient(#9aa8b5 1.1px, transparent 1.2px);
  background-size: 0.28rem 0.28rem;
  opacity: 0.85;
}
.org-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: #c5d0d8;
}
.org-item-picto {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.org-item-picto svg {
  display: block;
}
.org-item-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.org-item-head input[data-org-field="nom"],
.org-item-head input[data-org-field="fonction"] {
  width: 100%;
  min-width: 0;
  cursor: text;
  user-select: text;
}
.org-count {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6b7c8a;
  white-space: nowrap;
}
.org-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  padding-left: 0.85rem;
}
.org-chip {
  border: 0;
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.org-chip-navy {
  background: #0b3d5c;
  color: #fff;
}
.org-chip-orange {
  background: #e87722;
  color: #fff;
}
.org-chip-muted {
  background: #e8eef3;
  color: #0b3d5c;
}
.org-chip-purple {
  background: #7c3aed;
  color: #fff;
}
.org-chip.has-color {
  color: #fff;
}
.org-add {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem 0.6rem;
  border-top: 1px solid #e5edf3;
}
.org-chart-preview {
  background: #fff;
  border: 1px solid #d5dee6;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  min-height: 16rem;
}
.org-chart-preview svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.org-mini-chart {
  margin-top: 0.75rem;
  border: 1px solid #d5dee6;
  border-radius: 8px;
  padding: 0.5rem;
  background: #f8fafc;
}
.org-mini-chart svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.org-preview-embed {
  margin: 0.4rem 0 0.8rem;
}
.org-preview-embed svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.org-picto {
  width: 16px;
  height: 16px;
  display: inline-block;
  background: #e87722;
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}
.org-picto-room {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M2 14V7l6-4 6 4v7H9V9H7v5z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M2 14V7l6-4 6 4v7H9V9H7v5z'/></svg>");
}
.org-picto-service {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='2' y='3' width='12' height='11' rx='1.2' fill='black'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='2' y='3' width='12' height='11' rx='1.2' fill='black'/></svg>");
}
.org-picto-person {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='5' r='3' fill='black'/><path d='M3 14c0-3 2.2-5 5-5s5 2 5 5' fill='black'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='5' r='3' fill='black'/><path d='M3 14c0-3 2.2-5 5-5s5 2 5 5' fill='black'/></svg>");
}
@media (max-width: 900px) {
  #organigramme-modal .org-modal-dialog {
    width: auto;
    max-width: none;
    margin: 0.4rem;
  }
  .org-editor-grid,
  .org-services-pair {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .org-col {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }
  .org-splines {
    display: none;
  }
}

/* —— Fiche client : menu gauche + panneau droit —— */
.client-fiche-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  width: 100%;
  max-width: none;
}

.client-fiche-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: sticky;
  top: 1rem;
}

.client-fiche-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d7e0e8;
  border-radius: 8px;
  background: #fff;
  color: #0b3d5c;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.client-fiche-nav-btn:hover {
  border-color: #0b3d5c;
  background: #f4f8fb;
}

.client-fiche-nav-btn.is-active {
  border-color: #e87722;
  background: #e87722;
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 119, 34, 0.28);
}

.client-fiche-panels {
  padding: 1.25rem 1.35rem 1.1rem;
  min-height: 320px;
}

.client-section-title {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7c8c;
  font-weight: 700;
}

.client-subsection {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e6edf3;
}

.client-subsection-title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b3d5c;
  font-weight: 700;
}

.client-fiche-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid #e6edf3;
}

@media (max-width: 768px) {
  .client-fiche-layout {
    grid-template-columns: 1fr;
  }

  .client-fiche-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .client-fiche-nav-btn {
    width: auto;
  }
}

/* APS Planning */
.aps-planning-page {
  min-height: calc(100vh - 12rem);
}

.aps-shell {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  min-height: calc(100vh - 14rem);
}

.aps-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.15rem;
}

.aps-nav-btn {
  appearance: none;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #6b7c8c;
  padding: 0.7rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  min-height: 0;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.aps-nav-btn:hover {
  color: #0b3d5c;
  background: rgba(11, 61, 92, 0.04);
}

.aps-nav-btn.is-sub {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  padding-left: 1.15rem;
  font-size: 0.74rem;
  color: #8a97a3;
}

.aps-nav-btn.is-context {
  color: #0b3d5c;
}

.aps-nav-btn.is-active {
  background: transparent;
  color: #0b3d5c;
  border-left-color: #0b3d5c;
  font-weight: 800;
}

.aps-nav-btn.is-bottom {
  margin-top: auto;
}

.aps-nav-pdf {
  margin-top: 0.75rem;
  align-self: stretch;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.aps-nav-recap {
  align-self: stretch;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #fff;
}

.aps-nav-recap:hover {
  background: rgba(11, 61, 92, 0.06);
  color: var(--arco-blue);
  border-color: var(--arco-blue);
}

.aps-nav-users {
  align-self: stretch;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #fff;
}

.aps-nav-users:hover {
  background: rgba(11, 61, 92, 0.06);
  color: var(--arco-blue);
  border-color: var(--arco-blue);
}

.aps-users-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: calc(100vh - 8rem);
}

.aps-users-head h1 {
  color: #0b3d5c;
}

.aps-users-cols {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  min-height: calc(100vh - 14rem);
}

.aps-users-col {
  flex: 1 0 16rem;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  min-height: 18rem;
  background: #fff;
  border: 1px solid rgba(11, 61, 92, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.aps-users-col-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem;
  color: #0b3d5c;
  font-weight: 700;
  border-bottom: 2px solid #e87722;
  background: #faf8f5;
}

.aps-users-col-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem;
  overflow: auto;
}

.aps-users-card {
  border: 1px solid rgba(11, 61, 92, 0.12);
  border-left: 4px solid #0b3d5c;
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  background: #fff;
}

.aps-users-card.is-maquette {
  background: #f8d0d0;
  border-color: #e7a8a8;
}

.aps-users-card.is-a_faire { border-left-color: #8aa0b4; }
.aps-users-card.is-en_cours { border-left-color: #2f6fed; }
.aps-users-card.is-bloque { border-left-color: #e23b3b; }
.aps-users-card.is-fait { border-left-color: #1f9d55; }
.aps-users-card.is-fait_a_chiffrer { border-left-color: #111; }
.aps-users-card.is-chiffrage_ok { border-left-color: #ff2d8a; background: #ff2d8a; color: #fff; }

.aps-users-card-title {
  font-weight: 700;
  color: #0b3d5c;
  line-height: 1.25;
}

.aps-users-card.is-chiffrage_ok .aps-users-card-title,
.aps-users-card.is-chiffrage_ok .aps-users-card-meta {
  color: #fff;
}

.aps-users-card-meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #5c6b78;
}

.aps-panel {
  min-width: 0;
  min-height: 100%;
}

.aps-board-cols {
  display: grid;
  grid-template-columns: minmax(11rem, 0.9fr) minmax(0, 4.2fr);
  gap: 1.5rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  min-height: calc(100vh - 14rem);
  height: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

.aps-board-pipe {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.aps-board-rest {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  min-width: 0;
  min-height: 0;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(232, 168, 184, 0.85);
  background: rgba(243, 214, 222, 0.28);
  box-sizing: border-box;
}

.aps-panel[data-board="projet"] .aps-board-rest,
.aps-board-cols[data-board="projet"] .aps-board-rest {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aps-board-pipe .aps-col,
.aps-board-rest .aps-col {
  height: 100%;
}

.aps-col--pipe {
  border-color: rgba(11, 61, 92, 0.14);
}

.aps-col {
  display: flex;
  flex-direction: column;
  min-height: 12rem;
  min-width: 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(11, 61, 92, 0.1);
  overflow: hidden;
  box-shadow: none;
}

.aps-col.drag-over {
  border-color: #0b3d5c;
  box-shadow: inset 0 0 0 1px #0b3d5c;
}

.aps-col-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem 0.5rem;
  background: transparent;
  color: #0b3d5c;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  min-height: 2.4rem;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(11, 61, 92, 0.08);
}

.aps-col-title {
  flex: 1 1 auto;
  min-width: 0;
}

.aps-col-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
}

.aps-col-add {
  appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 61, 92, 0.22);
  background: #fff;
  color: #0b3d5c;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.aps-col-add:hover {
  border-color: #0b3d5c;
  background: rgba(11, 61, 92, 0.06);
}
.aps-col-add--maquette {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.55);
}
.aps-col-add--maquette:hover {
  color: #fff;
  background: #c0392b;
  border-color: #c0392b;
}

.aps-dessin-filter {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 0.55rem 0.55rem 0.65rem;
  border-top: 1px solid rgba(11, 61, 92, 0.1);
  background: rgba(250, 251, 252, 0.95);
}
.aps-dessin-filter-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a97a3;
  margin-bottom: 0.4rem;
}
.aps-dessin-filter-bulk {
  display: flex;
  flex-direction: row;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}
.aps-dessin-filter-bulk .aps-dessin-chip--bulk {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding: 0.35rem 0.3rem;
  font-size: 0.62rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aps-dessin-filter-chips {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.aps-dessin-chip {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(11, 61, 92, 0.14);
  border-radius: 7px;
  background: #eef1f4;
  color: #8a97a3;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
}
.aps-dessin-chip.is-on {
  background: var(--aps-collab, #0b3d5c);
  border-color: var(--aps-collab, #0b3d5c);
  color: #fff;
}
.aps-dessin-chip:not(.is-on) {
  background: #eef1f4;
  border-color: color-mix(in srgb, var(--aps-collab, #6b7c8c) 35%, #c5ced6);
  color: #8a97a3;
  box-shadow: inset 3px 0 0 var(--aps-collab, #6b7c8c);
}
.aps-dessin-chip--bulk {
  background: #fff;
  color: #0b3d5c;
  border-style: dashed;
  font-weight: 650;
  box-shadow: none;
}
.aps-dessin-chip--bulk:hover {
  background: rgba(11, 61, 92, 0.06);
}
.aps-dessin-chip:hover {
  border-color: var(--aps-collab, #0b3d5c);
}
.aps-dessin-filter-empty {
  font-size: 0.7rem;
  color: #a8b4bf;
  padding: 0.2rem 0.1rem;
}

.aps-col-count {
  flex: 0 0 auto;
  min-width: 1.15rem;
  text-align: center;
  border-radius: 999px;
  background: transparent;
  color: #6b7c8c;
  border: 1px solid rgba(11, 61, 92, 0.18);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.08rem 0.3rem;
}

.aps-col-body {
  flex: 1 1 auto;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
}

.aps-col-empty {
  margin: 1.25rem 0.2rem;
  font-size: 0.7rem;
  color: #a8b4bf;
  text-align: center;
  font-weight: 500;
}

.aps-card {
  flex: 0 0 auto;
  border: 1px solid rgba(11, 61, 92, 0.1);
  border-radius: 6px;
  background: #fff;
  padding: 0.4rem 0.45rem;
  cursor: grab;
  box-shadow: none;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.aps-card-grid {
  display: grid;
  grid-template-columns: 3.35rem minmax(0, 1.5fr) minmax(0, 1.35fr);
  gap: 0.28rem 0.55rem;
  width: 100%;
}

.aps-card-cell-num .aps-card-v {
  font-size: 0.62rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.aps-card-cell-span {
  grid-column: 2 / span 2;
}

.aps-card-k {
  display: block;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a97a3;
  line-height: 1.15;
}

.aps-card-v {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0b3d5c;
  line-height: 1.2;
  word-break: break-word;
}

.aps-card-cell-tag {
  display: flex;
  align-items: flex-end;
}

.aps-card-cell-tag .aps-card-v {
  margin-top: 0;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.aps-panel[data-board="aps"] .aps-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  padding-right: 0.95rem;
}

.aps-card-bandeau {
  display: none;
}

.aps-panel[data-board="aps"] .aps-card-bandeau {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 0.55rem;
  background: var(--aps-collab, #6b7c8c);
  border-radius: 0;
}

.aps-card:hover {
  border-color: rgba(11, 61, 92, 0.28);
}

.aps-card.is-dragging {
  opacity: 0.5;
}

.aps-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
}

.aps-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0b3d5c;
  line-height: 1.25;
  min-width: 0;
  flex: 1 1 auto;
}

.aps-card-meta {
  margin-top: 0.2rem;
  font-size: 0.66rem;
  color: #8a97a3;
  font-weight: 500;
}

.aps-card-code {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #0b3d5c;
  letter-spacing: 0.02em;
}

.aps-task-detail-code-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr;
  gap: 0.45rem;
}

.flux-projet-code {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #0b3d5c;
  margin-top: 0.15rem;
}

/* État : fond uniforme, sans bandeau gauche */
.aps-card.is-a_faire,
.aps-card.is-en_cours,
.aps-card.is-bloque,
.aps-card.is-fait_a_chiffrer,
.aps-card.is-chiffrage_ok,
.aps-card.is-fait {
  border-width: 1px;
  border-style: solid;
  border-left-width: 1px;
}

.aps-card.is-a_faire {
  background: #d5dbe1;
  border-color: #c3ccd4;
}

.aps-card.is-en_cours {
  background: #c5ddf8;
  border-color: #9ec4ef;
}

.aps-card.is-bloque {
  background: #ffd199;
  border-color: #f5bc78;
}

.aps-card.is-fait {
  background: #c6efc0;
  border-color: #a8e0a0;
}

.aps-card.is-fait_a_chiffrer {
  background: #14632c;
  border-color: #0f4e22;
}

.aps-card.is-fait_a_chiffrer .aps-card-k,
.aps-card.is-fait_a_chiffrer .aps-card-v,
.aps-card.is-fait_a_chiffrer .aps-card-duree,
.aps-card.is-fait_a_chiffrer .aps-card-suite {
  color: #fff;
}

.aps-card.is-chiffrage_ok {
  background: #ff2d8a;
  border-color: #e01470;
}

.aps-card.is-chiffrage_ok .aps-card-k,
.aps-card.is-chiffrage_ok .aps-card-v,
.aps-card.is-chiffrage_ok .aps-card-duree,
.aps-card.is-chiffrage_ok .aps-card-suite {
  color: #fff;
}

.aps-card.is-maquette,
.aps-card.is-maquette.is-a_faire,
.aps-card.is-maquette.is-en_cours,
.aps-card.is-maquette.is-bloque,
.aps-card.is-maquette.is-fait,
.aps-card.is-maquette.is-fait_a_chiffrer,
.aps-card.is-maquette.is-chiffrage_ok {
  background: #f8d0d0;
  border-color: #e07a7a;
}
.aps-card.is-maquette .aps-card-k,
.aps-card.is-maquette .aps-card-v,
.aps-card.is-maquette .aps-card-duree,
.aps-card.is-maquette .aps-card-suite {
  color: #0b3d5c;
}
.aps-card.is-maquette .aps-card-cell-tag .aps-card-v {
  color: #b42318;
}

.aps-card-duree {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7c8c;
}

.aps-card-duree select {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #0b3d5c;
  background: #fff;
  border: 1px solid rgba(11, 61, 92, 0.2);
  border-radius: 4px;
  padding: 0.05rem 0.2rem;
}

.aps-card.is-suite {
  cursor: default;
}

.aps-card-suite {
  margin: 0.3rem 0 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7c8c;
}

.aps-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
  padding: 0.35rem 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(11, 61, 92, 0.1);
}

.aps-legend-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa8b5;
}

.aps-legend ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aps-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: #5a6b78;
  font-weight: 500;
}

.aps-legend-swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 0;
}

.aps-legend-swatch.is-a_faire {
  background: #d5dbe1;
  box-shadow: inset 0 0 0 1px #8b97a3;
}

.aps-legend-swatch.is-en_cours {
  background: #3d7fbf;
}

.aps-legend-swatch.is-bloque {
  background: #ffd199;
}

.aps-legend-swatch.is-fait {
  background: #7dce6a;
}

.aps-legend-swatch.is-fait_a_chiffrer {
  background: #14632c;
}

.aps-legend-swatch.is-chiffrage_ok {
  background: #ff2d8a;
}

.aps-collab-item.is-active {
  background: #eef3f7;
  font-weight: 700;
}

.aps-card-tag {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: #0b3d5c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aps-card-tag.is-empty {
  background: #eef3f7;
  color: #6b7c8c;
  border: 1px dashed #9aa8b5;
}

.aps-card-schedule {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.35rem;
}

.aps-card-pill {
  display: inline-block;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  width: fit-content;
  max-width: 100%;
}

.aps-card-pill.is-dessin {
  background: #e3f2fd;
  color: #1565c0;
}

.aps-card-pill.is-chiffrage {
  background: #fff3e0;
  color: #e65100;
}

.aps-card-pill.is-rdv {
  background: #fce4ec;
  color: #c2185b;
}

.aps-card-pill.is-empty {
  background: #f4f6f8;
  color: #8a97a3;
  border: 1px dashed #c5ced6;
}

.aps-menu-rdv {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.25rem 0.45rem 0.45rem;
  align-items: center;
}

.aps-menu-rdv .form-control {
  flex: 1 1 8rem;
  min-width: 8rem;
}

.aps-menu-schedule {
  padding: 0.15rem 0.55rem 0.45rem;
  font-size: 0.72rem;
  color: #5a6b78;
  line-height: 1.35;
}

.aps-collab-menu-title {
  padding: 0.35rem 0.55rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7c8c;
}

.aps-card-collab {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.65rem;
  font-weight: 700;
}

.aps-collab-menu {
  position: fixed;
  z-index: 2000;
  min-width: 14rem;
  max-height: 28rem;
  overflow: auto;
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid #c5ced6;
  background: #fff;
  box-shadow: 0 12px 28px rgba(11, 61, 92, 0.18);
}

.aps-collab-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #0b3d5c;
}

.aps-collab-item:hover {
  background: #eef3f7;
}

.aps-card-tip {
  position: fixed;
  z-index: 2100;
  max-width: 17rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(11, 61, 92, 0.12);
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 61, 92, 0.1);
  pointer-events: none;
  font-size: 0.74rem;
  color: #334155;
}

.aps-card-tip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.aps-card-tip-phase {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0b3d5c;
  white-space: nowrap;
}

.aps-card-tip-title {
  font-weight: 800;
  color: #0b3d5c;
  font-size: 0.88rem;
  min-width: 0;
  flex: 1 1 auto;
}

.aps-card-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.12rem 0;
  border-top: 1px solid #eef2f5;
}

.aps-card-tip-row span {
  color: #6b7c8c;
}

.aps-card-tip-row strong {
  font-weight: 700;
  color: #0b3d5c;
  text-align: right;
}

.aps-task-detail {
  position: fixed;
  inset: 0;
  z-index: 2200;
}

.aps-task-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 92, 0.2);
}

.aps-task-detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(22rem, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 24px rgba(11, 61, 92, 0.1);
  overflow: auto;
  padding: 1.15rem 1.2rem 1.5rem;
  border-left: 1px solid rgba(11, 61, 92, 0.08);
}

.aps-task-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.aps-task-detail-phase {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b3d5c;
}

.aps-task-detail-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #0b3d5c;
  font-weight: 800;
}

.aps-task-detail-list {
  margin: 0 0 1rem;
  padding: 0;
}

.aps-task-detail-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.4rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #eef2f5;
}

.aps-task-detail-row dt {
  margin: 0;
  color: #6b7c8c;
  font-size: 0.78rem;
}

.aps-task-detail-row dd {
  margin: 0;
  color: #0b3d5c;
  font-weight: 700;
  font-size: 0.84rem;
}

.aps-task-detail-edit {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.35rem;
}

.aps-task-detail-edit label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a6b78;
}

.aps-task-detail-edit textarea {
  resize: vertical;
  min-height: 4.5rem;
  font-weight: 500;
  color: #0b3d5c;
}

.aps-task-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.aps-projet-picker {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.aps-projet-picker[hidden] {
  display: none !important;
}
.aps-projet-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 92, 0.35);
}
.aps-projet-picker-panel {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  max-height: min(34rem, 88vh);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(11, 61, 92, 0.12);
  box-shadow: 0 18px 48px rgba(11, 61, 92, 0.18);
  overflow: hidden;
}
.aps-projet-picker-head {
  padding: 1rem 1.1rem 0.55rem;
}
.aps-projet-picker.is-maquette .aps-projet-picker-head h2 {
  color: #b42318;
}
.aps-projet-picker-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #0b3d5c;
  font-weight: 700;
}
.aps-projet-picker-sub {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #6b7c8c;
}
.aps-projet-picker-toolbar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 1.1rem 0.65rem;
}
.aps-projet-picker-toolbar .form-control {
  flex: 1 1 auto;
}
.aps-projet-picker-bulk {
  display: flex;
  gap: 0.3rem;
  flex: 0 0 auto;
}
.aps-projet-picker-list {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.25rem 0.65rem 0.65rem;
  border-top: 1px solid rgba(11, 61, 92, 0.08);
  border-bottom: 1px solid rgba(11, 61, 92, 0.08);
  min-height: 10rem;
}
.aps-projet-picker-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0.45rem;
  border-radius: 8px;
  cursor: pointer;
  margin: 0;
}
.aps-projet-picker-item:hover {
  background: rgba(11, 61, 92, 0.04);
}
.aps-projet-picker-item input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}
.aps-projet-picker-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.aps-projet-picker-item-title {
  color: #0b3d5c;
  font-size: 0.86rem;
  font-weight: 650;
}
.aps-projet-picker-item-meta {
  color: #6b7c8c;
  font-size: 0.72rem;
}
.aps-projet-picker-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
}
body.aps-picker-open {
  overflow: hidden;
}

.aps-recap {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.aps-recap[hidden] {
  display: none !important;
}
.aps-recap-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 92, 0.35);
}
.aps-recap-panel {
  position: relative;
  z-index: 1;
  width: min(68rem, 100%);
  max-height: min(36rem, 88vh);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(11, 61, 92, 0.12);
  box-shadow: 0 18px 48px rgba(11, 61, 92, 0.18);
  overflow: hidden;
}
.aps-recap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.75rem;
}
.aps-recap-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}
.aps-recap-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #0b3d5c;
  font-weight: 700;
}
.aps-recap-sub {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #6b7c8c;
}
.aps-recap-list {
  flex: 1 1 auto;
  overflow: auto;
  border-top: 1px solid rgba(11, 61, 92, 0.08);
  min-height: 8rem;
}
.aps-recap-empty {
  margin: 0;
  padding: 1.25rem 1.1rem;
  color: #6b7c8c;
  font-size: 0.86rem;
}
.aps-recap-row {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1.3fr) 7.4rem minmax(7rem, 0.9fr) 7.2rem minmax(6.2rem, 0.7fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-bottom: 1px solid rgba(11, 61, 92, 0.06);
}
.aps-recap-row--head {
  position: sticky;
  top: 0;
  background: #f6f8fa;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a97a3;
  z-index: 1;
}
.aps-recap-code {
  color: #0b3d5c;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.aps-recap-row--head .aps-recap-code,
.aps-recap-row--head span {
  font-weight: 700;
}
.aps-recap-name {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.aps-recap-name strong {
  color: #0b3d5c;
  font-size: 0.88rem;
  font-weight: 650;
}
.aps-recap-meta {
  color: #6b7c8c;
  font-size: 0.72rem;
}
.aps-recap-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #eef2f5;
  color: #5a6b78;
}
.aps-recap-status.is-a_faire {
  background: #eef2f5;
  color: #5a6b78;
}
.aps-recap-status.is-en_cours {
  background: #e7f1fa;
  color: #1f5f96;
}
.aps-recap-status.is-bloque {
  background: #fff1e4;
  color: #b86a1a;
}
.aps-recap-status.is-fait {
  background: #eaf7e6;
  color: #3d7a32;
}
.aps-recap-status.is-fait_a_chiffrer {
  background: #e5f3ea;
  color: #14632c;
}
.aps-recap-status.is-chiffrage_ok {
  background: #ff2d8a;
  color: #fff;
}
.aps-recap-pos,
.aps-recap-who,
.aps-recap-dates {
  color: #3d4f5f;
  font-size: 0.78rem;
}
.aps-recap-who,
.aps-recap-dates {
  font-weight: 650;
}

@media (max-width: 640px) {
  .aps-recap-row,
  .aps-recap-row--head {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .aps-recap-row--head {
    display: none;
  }
}

@media (max-width: 900px) {
  .aps-shell {
    grid-template-columns: 1fr;
  }
  .aps-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .aps-nav-btn {
    flex: 1 1 auto;
    border-left: 0;
    border-bottom: 2px solid transparent;
    text-align: center;
    padding: 0.45rem 0.5rem;
  }
  .aps-nav-btn.is-active {
    border-left-color: transparent;
    border-bottom-color: #0b3d5c;
  }
  .aps-nav-pdf,
  .aps-nav-recap,
  .aps-nav-users {
    flex: 1 1 6rem;
    margin-top: 0.35rem;
  }
  .aps-board-cols {
    min-height: 18rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .aps-board-pipe {
    padding-right: 0;
    padding-bottom: 0;
  }
  .aps-board-rest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.aps-prompt-pre {
  margin: 0;
  padding: 1.15rem 1.25rem;
  max-height: min(70vh, 42rem);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #0b3d5c;
  background: #f7f9fb;
  border-radius: 0 0 0.5rem 0.5rem;
}

/* Page Heures APS — fond froid contemporain (hors beige crème global) */
body.arco-body.aps-heures-page {
  background:
    radial-gradient(780px 380px at 100% 0%, rgba(11, 61, 92, 0.06), transparent 60%),
    linear-gradient(180deg, #eef2f5 0%, #e6ebf0 100%);
  color: #1e2937;
}
body.aps-heures-page .arco-content {
  max-width: 72rem;
}
.aps-heures {
  color: #1e2937;
}
.aps-heures-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-end;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(11, 61, 92, 0.1);
  margin-bottom: 1.25rem;
}
.aps-heures-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.aps-heures-tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #8a97a3;
  border-radius: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.aps-heures-tab:hover {
  color: #0b3d5c;
}
.aps-heures-tab.is-on {
  background: transparent;
  border-bottom-color: #0b3d5c;
  color: #0b3d5c;
}
.aps-h-bilan-pdf-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}
.aps-h-bilan-pdf {
  border-radius: 0;
  font-weight: 650;
  letter-spacing: 0.02em;
  min-width: 7.5rem;
}
.aps-h-bilan-pdf-hint {
  font-size: 0.62rem;
  color: #8fa0b0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aps-h-chrono-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) minmax(20rem, 1.35fr);
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .aps-h-chrono-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.aps-h-col {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.aps-h-col .card-body {
  padding: 0;
}
.aps-h-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa8b5;
  margin: 0;
}
.aps-h-search {
  border: 0;
  border-bottom: 1px solid rgba(11, 61, 92, 0.12);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  box-shadow: none !important;
  font-size: 0.84rem;
}
.aps-h-search:focus {
  border-bottom-color: #0b3d5c;
  box-shadow: none !important;
}
.aps-h-projet-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 34rem;
  overflow: auto;
  margin: 0 -0.15rem;
  padding: 0.15rem 0;
}
.aps-h-projet {
  appearance: none;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(11, 61, 92, 0.07);
  background: transparent;
  border-radius: 0;
  padding: 0.85rem 0.35rem 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  box-shadow: inset 3px 0 0 transparent;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.aps-h-projet:last-child {
  border-bottom: 0;
}
.aps-h-projet:hover {
  background: rgba(11, 61, 92, 0.025);
}
.aps-h-projet strong {
  color: #0b3d5c;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.aps-h-projet span {
  color: #94a3b0;
  font-size: 0.74rem;
  font-weight: 450;
  letter-spacing: 0.01em;
}
.aps-h-projet.is-on {
  background: transparent;
  box-shadow: inset 3px 0 0 #0b3d5c;
}
.aps-h-projet.is-on strong {
  color: #062a40;
  font-weight: 700;
}
.aps-h-phases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.aps-h-phase {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8a97a3;
  border-radius: 0;
  padding: 0.25rem 0;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  min-width: 3.2rem;
  text-align: center;
}
.aps-h-phase:hover {
  color: #0b3d5c;
}
.aps-h-phase.is-on {
  background: transparent;
  color: var(--aps-phase-color, #0b3d5c);
  border-bottom-color: var(--aps-phase-color, #0b3d5c);
}
.aps-h-phase.is-running {
  color: var(--aps-phase-color, #1b8a2e);
  border-bottom-color: var(--aps-phase-color, #1b8a2e);
}
.aps-h-phase[data-phase="APS"] { --aps-phase-color: #1b8a2e; }
.aps-h-phase[data-phase="PC"] { --aps-phase-color: #0b63c7; }
.aps-h-phase[data-phase="FAISA"] { --aps-phase-color: #e87722; }
.aps-h-phase[data-phase="MAQUETTE"] { --aps-phase-color: #7c3aed; }

.aps-h-live {
  --aps-phase-bar: #c5d0da;
  background: #fff;
  border-radius: 0.55rem;
  padding: 1rem 1.15rem 1.1rem;
  margin-bottom: 1.35rem;
  border: 1px solid #d5dee6;
  box-shadow: 0 2px 8px rgba(10, 58, 92, 0.07);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.aps-h-live::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--aps-phase-bar);
}
.aps-h-live.is-running[data-phase="APS"],
.aps-h-live.is-on[data-phase="APS"] { --aps-phase-bar: #1b8a2e; }
.aps-h-live.is-running[data-phase="PC"],
.aps-h-live.is-on[data-phase="PC"] { --aps-phase-bar: #0b63c7; }
.aps-h-live.is-running[data-phase="FAISA"],
.aps-h-live.is-on[data-phase="FAISA"] { --aps-phase-bar: #e87722; }
.aps-h-live.is-running[data-phase="MAQUETTE"],
.aps-h-live.is-on[data-phase="MAQUETTE"] { --aps-phase-bar: #7c3aed; }
.aps-h-live.is-idle { --aps-phase-bar: #c5d0da; }
.aps-h-live .aps-h-col-title {
  color: #6b7c8c;
  letter-spacing: 0.08em;
}
.aps-h-counter {
  font-size: 2.4rem;
  font-weight: 800;
  color: #0a3a5c;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.2rem 0 0.15rem;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
.aps-h-live:not(.is-running) .aps-h-counter {
  animation: aps-h-counter-blink 2.4s ease-in-out infinite;
}
.aps-h-live.is-idle .aps-h-counter {
  color: #8fa0b0;
}
@keyframes aps-h-counter-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.28;
  }
}
@media (prefers-reduced-motion: reduce) {
  .aps-h-live:not(.is-running) .aps-h-counter {
    animation: none;
  }
}
.aps-h-live-meta {
  margin-top: 0.25rem;
  color: #3d5f7a;
  font-size: 0.88rem;
  font-weight: 500;
}
.aps-h-cutoff-hint {
  font-size: 0.68rem;
  color: #8fa0b0;
  margin-top: 0.45rem;
  letter-spacing: 0.03em;
}
.aps-h-actions .btn {
  border-radius: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-width: 5.5rem;
}
.aps-h-hist {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(11, 61, 92, 0.1);
  padding-top: 0.85rem;
}
.aps-h-hist .table {
  --bs-table-bg: transparent;
}
.aps-h-hist .table th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8b99;
  font-weight: 700;
  border-bottom-color: rgba(11, 61, 92, 0.1);
}
.aps-h-hist .table td {
  font-size: 0.78rem;
  color: #334155;
  border-bottom-color: rgba(11, 61, 92, 0.06);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.aps-h-proj-wrap {
  background: transparent;
}
.aps-h-proj-table {
  --bs-table-bg: transparent;
  width: auto;
  max-width: 100%;
  table-layout: auto;
}
.aps-h-proj-table > thead > tr > th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8b99;
  font-weight: 700;
  border-bottom: 1px solid rgba(11, 61, 92, 0.12);
  white-space: nowrap;
  padding-right: 1.25rem;
}
.aps-h-proj-table > thead > tr > th:last-child,
.aps-h-proj-table > tbody > tr.aps-h-proj-row > td:last-child {
  width: 100%;
  padding-right: 0.5rem;
}
.aps-h-proj-table > tbody > tr.aps-h-proj-row > td {
  vertical-align: middle;
  border-bottom-color: rgba(11, 61, 92, 0.08);
  font-size: 0.84rem;
  white-space: nowrap;
  width: 1%;
  padding-right: 1.25rem;
}
.aps-h-proj-table > tbody > tr.aps-h-proj-row > td:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.aps-h-proj-name {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #0b3d5c;
  font-weight: 650;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.aps-h-proj-name:hover {
  border-bottom-color: rgba(11, 61, 92, 0.35);
}
.aps-h-proj-row.is-open .aps-h-proj-name {
  color: #062a40;
  border-bottom-color: #0b3d5c;
}
.aps-h-proj-detail > td {
  background: rgba(11, 61, 92, 0.035);
  border-bottom: 1px solid rgba(11, 61, 92, 0.1);
  padding: 0.65rem 0.85rem 0.85rem !important;
}
.aps-h-proj-detail-table {
  --bs-table-bg: transparent;
  max-width: 36rem;
}
.aps-h-proj-detail-table th {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8b99;
  font-weight: 700;
  border-bottom-color: rgba(11, 61, 92, 0.1);
}
.aps-h-proj-detail-table td {
  font-size: 0.8rem;
  color: #334155;
  border-bottom-color: rgba(11, 61, 92, 0.06);
}

/* —— Menu iPhone —— */
.arco-body.iphone-page {
  background: #f7f5f1;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
.arco-body.iphone-page .arco-shell {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.arco-body.iphone-page .arco-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.ip-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
}
.ip-phone {
  --ip-red: #d45b5b;
  --ip-red-2: #c24747;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: #f7f5f1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ip-screen {
  flex: 1;
  background: #f7f5f1;
  overflow: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.ip-tabbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid rgba(11, 61, 92, 0.08);
  flex-shrink: 0;
}
.ip-tab {
  border: 0;
  background: transparent;
  color: #6b7c8c;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.1rem;
  border-radius: 10px;
}
.ip-tab.is-on {
  color: #0b3d5c;
  background: rgba(11, 61, 92, 0.08);
}
.ip-tab.ip-tab--red {
  background: var(--ip-red);
  color: #fff;
}
.ip-tab.ip-tab--red.is-on {
  background: var(--ip-red-2);
  color: #fff;
}
.ip-head {
  padding: 0.85rem 1.1rem 0.75rem;
}
.ip-head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0b3d5c;
}
.ip-sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #6b7c8c;
}
.ip-home-menu {
  padding: 0.5rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ip-home-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.55rem;
}
.ip-tile {
  appearance: none;
  border: 0;
  background: var(--ip-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  min-height: 4.6rem;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
.ip-tile:hover,
.ip-tile:focus-visible {
  background: var(--ip-red-2);
  color: #fff;
}
.ip-tile--wide {
  min-height: 3.4rem;
  width: 100%;
}
.ip-body {
  padding: 0 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ip-empty {
  margin: 0.4rem 0;
  color: #8a97a3;
  font-size: 0.82rem;
}
.ip-error {
  margin: 0 0 0.4rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fde8e8;
  color: #9b2c2c;
  font-size: 0.82rem;
  font-weight: 600;
}
.ip-btn:disabled {
  opacity: 0.55;
}
.ip-card {
  background: #fff;
  border: 1px solid rgba(11, 61, 92, 0.1);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  text-align: left;
}
.ip-card.is-done {
  opacity: 0.55;
}
.ip-card-btn {
  width: 100%;
  cursor: pointer;
}
.ip-client {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #0b3d5c;
  font-size: 0.88rem;
}
.ip-client span {
  color: #6b7c8c;
  font-weight: 500;
  font-size: 0.75rem;
}
.ip-meta {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: #6b7c8c;
}
.ip-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.4rem;
}
.ip-form label,
.ip-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5a6b78;
  margin: 0;
}
.ip-form input,
.ip-form select,
.ip-form textarea,
.ip-search {
  border: 1px solid rgba(11, 61, 92, 0.16);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font-size: 0.88rem;
  color: #0b3d5c;
  background: #fff;
}
.ip-search {
  width: 100%;
}
.ip-pick-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 14rem;
  overflow: auto;
}
.ip-card.is-picked {
  border-color: var(--ip-red);
  box-shadow: inset 3px 0 0 var(--ip-red);
}
.ip-btn,
.ip-mini {
  border: 0;
  border-radius: 10px;
  background: var(--ip-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 0.8rem;
}
.ip-mini {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  padding: 0.3rem 0.55rem;
}
.ip-action {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.ip-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid rgba(11, 61, 92, 0.16);
  border-radius: 10px;
  padding: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0b3d5c;
}
.arco-body.iphone-page .arco-topbar {
  display: none;
}
.ip-phone {
  padding-top: env(safe-area-inset-top, 0px);
}

/* —— OFFRE_V2 / BASE_DOCUMENTAIRE_V2 —— */
.arco-body.v2-page {
  background:
    radial-gradient(1200px 480px at 8% -10%, rgba(11, 61, 92, 0.05), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(232, 119, 34, 0.05), transparent 55%),
    #f7f5f1;
}
.arco-body.v2-page .arco-content {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 3.5rem);
}
.v2-page-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}
.v2-pdf-btn {
  border: 0;
  border-radius: 10px;
  background: var(--arco-orange);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.15rem;
  min-width: 5.5rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(232, 119, 34, 0.28);
  transition: background 0.12s ease, transform 0.12s ease;
}
.v2-pdf-btn:hover {
  background: #d56a14;
  transform: translateY(-1px);
}
.v2-pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  flex-direction: column;
  background: #2b3035;
}
.v2-pdf-viewer.is-open {
  display: flex !important;
}
.v2-pdf-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(90deg, var(--arco-blue), var(--arco-blue-2));
  color: #fff;
}
.v2-pdf-toolbar h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.v2-pdf-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}
.v2-pdf-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #525659;
}
.v2-pdf-actions {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(11, 61, 92, 0.22);
}
.v2-pdf-actions .btn {
  min-width: 7.5rem;
}
.v2-pdf-wait {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 140, 66, 0.18), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(11, 61, 92, 0.35), transparent 45%),
    #1e2a33;
}
.v2-pdf-wait[hidden] {
  display: none !important;
}
.v2-pdf-wait-card {
  width: min(26rem, 100%);
  text-align: center;
  color: #fff;
  padding: 1.6rem 1.4rem 1.35rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}
.v2-pdf-wait-mascot {
  position: relative;
  width: 4.2rem;
  height: 4.8rem;
  margin: 0 auto 1rem;
}
.v2-pdf-wait-page {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2.6rem;
  height: 3.4rem;
  margin-left: -1.3rem;
  border-radius: 4px 10px 4px 4px;
  background: linear-gradient(160deg, #fff 0%, #e8eef3 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  animation: v2-pdf-shuffle 1.6s ease-in-out infinite;
}
.v2-pdf-wait-page:nth-child(1) {
  transform: rotate(-10deg) translateX(-10px);
  animation-delay: 0s;
  opacity: 0.7;
}
.v2-pdf-wait-page:nth-child(2) {
  transform: rotate(2deg);
  animation-delay: 0.15s;
  z-index: 2;
}
.v2-pdf-wait-page:nth-child(3) {
  transform: rotate(12deg) translateX(10px);
  animation-delay: 0.3s;
  opacity: 0.75;
}
.v2-pdf-wait-page::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  top: 0.55rem;
  height: 0.18rem;
  background: rgba(11, 61, 92, 0.18);
  box-shadow:
    0 0.4rem 0 rgba(11, 61, 92, 0.14),
    0 0.8rem 0 rgba(11, 61, 92, 0.12),
    0 1.2rem 0 rgba(11, 61, 92, 0.1);
}
@keyframes v2-pdf-shuffle {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
.v2-pdf-wait-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.v2-pdf-wait-line {
  margin: 0 0 1rem;
  min-height: 2.8rem;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
  color: #fff;
  transition: opacity 0.25s ease;
}
.v2-pdf-wait-line.is-swap {
  opacity: 0;
}
.v2-pdf-wait-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin: 0 auto 0.85rem;
  max-width: 14rem;
}
.v2-pdf-wait-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--arco-orange), #ffd08a);
  animation: v2-pdf-bar 1.2s ease-in-out infinite;
}
@keyframes v2-pdf-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}
.v2-pdf-wait-sub {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}
.v2-pdf-frame[hidden],
.v2-pdf-actions[hidden] {
  display: none !important;
}
body.v2-pdf-open {
  overflow: hidden;
}
.v2-page-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 61, 92, 0.45);
  text-decoration: none;
}
.v2-page-kicker:hover {
  color: var(--arco-blue);
}
.v2-page-title {
  margin: 0;
  color: var(--arco-blue);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.v2-page-sub {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  color: rgba(31, 41, 55, 0.55);
  font-size: 0.84rem;
  line-height: 1.45;
}
.v2-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 61, 92, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 61, 92, 0.7);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.v2-status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #c4cad1;
}
.v2-status.is-ok {
  color: #1f6b45;
  border-color: rgba(31, 107, 69, 0.18);
  background: rgba(236, 248, 241, 0.9);
}
.v2-status.is-ok::before {
  background: #2f9e63;
}
.v2-status.is-busy {
  color: #8a5a12;
  border-color: rgba(138, 90, 18, 0.18);
  background: rgba(255, 248, 236, 0.92);
}
.v2-status.is-busy::before {
  background: var(--arco-orange);
}
.v2-workspace {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(280px, 1.45fr);
  flex: 1;
  min-height: 0;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(11, 61, 92, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px rgba(11, 61, 92, 0.06);
  backdrop-filter: blur(10px);
}
.v2-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid rgba(11, 61, 92, 0.07);
}
.v2-pane:last-child {
  border-right: 0;
}
.v2-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(180deg, #fbfaf8 0%, #f4f1eb 100%);
  border-bottom: 1px solid rgba(11, 61, 92, 0.07);
  color: var(--arco-blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.v2-pane-ops {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}
.v2-bar-input {
  min-width: 0;
  width: 100%;
  max-width: 18rem;
  border: 1px solid rgba(11, 61, 92, 0.1);
  border-radius: 999px;
  background: #fff;
  padding: 0.38rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--arco-blue);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.v2-bar-input::placeholder {
  color: rgba(11, 61, 92, 0.35);
}
.v2-bar-input:focus {
  outline: none;
  border-color: rgba(11, 61, 92, 0.28);
  box-shadow: 0 0 0 3px rgba(11, 61, 92, 0.08);
}
.v2-plus,
.v2-minus {
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 50%;
  background: var(--arco-orange);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
}
.v2-minus {
  background: transparent;
  color: rgba(11, 61, 92, 0.55);
  border: 1px solid rgba(11, 61, 92, 0.14);
}
.v2-plus:hover {
  background: #d56a14;
  transform: translateY(-1px);
}
.v2-minus:hover {
  background: rgba(11, 61, 92, 0.05);
  color: var(--arco-blue);
}
.v2-pane-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
}
.v2-pane-split {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.v2-pane-list {
  flex: 0 1 42%;
  min-height: 7rem;
  max-height: 48%;
  overflow: auto;
  border-bottom: 1px solid rgba(11, 61, 92, 0.08);
}
.v2-prompt-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem 1rem 1rem;
  background: #f7f9fb;
}
.v2-prompt-panel[hidden] {
  display: none !important;
}
.v2-prompt-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.v2-prompt-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 61, 92, 0.55);
}
.v2-prompt-title {
  color: var(--arco-blue);
  font-size: 0.95rem;
  font-weight: 700;
}
.v2-prompt-input {
  flex: 1;
  min-height: 8rem;
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(11, 61, 92, 0.16);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #1f2937;
  background: #fff;
  outline: none;
}
.v2-prompt-input:focus {
  border-color: var(--arco-blue);
  box-shadow: 0 0 0 3px rgba(11, 61, 92, 0.12);
}
.v2-prompt-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.v2-prompt-hint {
  font-size: 0.78rem;
  color: rgba(11, 61, 92, 0.55);
}
.v2-empty {
  margin: 0;
  padding: 2.4rem 1.25rem;
  color: rgba(11, 61, 92, 0.4);
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.5;
}
.v2-cover-preview {
  margin: 1.25rem;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(11, 61, 92, 0.06), transparent 55%),
    #f7f9fb;
  border: 1px solid rgba(11, 61, 92, 0.1);
  color: #1f2937;
}
.v2-cover-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 61, 92, 0.5);
}
.v2-cover-preview h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  color: #0b3d5c;
}
.v2-cover-preview p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(31, 41, 55, 0.85);
}
.v2-cover-preview ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
}
.v2-cover-hint {
  margin: 0 !important;
  font-size: 0.82rem !important;
  color: rgba(11, 61, 92, 0.55) !important;
}
.v2-row-wrap {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(11, 61, 92, 0.05);
  transition: background 0.15s ease;
}
.v2-row-wrap:hover {
  background: transparent;
}
.v2-row-wrap .v2-row {
  border-bottom: 0;
  flex: 1;
  min-width: 0;
}
.v2-print-dot {
  width: 2.1rem;
  flex-shrink: 0;
  border: 0;
  border-bottom: 1px solid rgba(11, 61, 92, 0.06);
  background: #e6e9ed;
  position: relative;
  cursor: pointer;
}
.v2-print-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin: -0.35rem 0 0 -0.35rem;
  border-radius: 50%;
  border: 1.5px solid rgba(11, 61, 92, 0.22);
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.v2-print-dot.is-on::before {
  border-color: #2f9e63;
  background: #2f9e63;
  box-shadow: 0 0 0 3px rgba(47, 158, 99, 0.18);
}
.v2-print-dot:hover::before {
  border-color: rgba(11, 61, 92, 0.4);
}
.v2-print-dot.is-on:hover::before {
  border-color: #278a55;
  background: #278a55;
}
.v2-order {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 1.55rem;
  opacity: 0.35;
  transition: opacity 0.15s ease;
}
.v2-row-wrap:hover .v2-order {
  opacity: 1;
}
.v2-arrow {
  flex: 1;
  border: 0;
  background: transparent;
  color: rgba(11, 61, 92, 0.55);
  font-size: 0.5rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}
.v2-arrow:hover:not(:disabled) {
  color: var(--arco-blue);
  background: rgba(11, 61, 92, 0.06);
}
.v2-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}
.v2-pane-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 0.45rem 0.65rem;
  border-top: 1px solid rgba(11, 61, 92, 0.08);
  background: #fff;
}
.v2-order-group {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(11, 61, 92, 0.14);
  border-radius: 10px;
  background: #f0f3f6;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.v2-order-btn {
  width: 2.35rem;
  height: 1.95rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--arco-blue);
  font-size: 0.58rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, opacity 0.12s ease;
}
.v2-order-btn + .v2-order-btn {
  border-left: 1px solid rgba(11, 61, 92, 0.12);
}
.v2-order-btn:hover:not(:disabled) {
  background: rgba(11, 61, 92, 0.07);
  color: #083049;
}
.v2-order-btn:disabled {
  opacity: 0.28;
  cursor: default;
}
.v2-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(11, 61, 92, 0.06);
  border-left: 3px solid transparent;
  background: #e6e9ed;
  text-align: left;
  padding: 0.95rem 1.05rem;
  font-size: 0.92rem;
  font-weight: 550;
  color: #5a6570;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  user-select: none;
}
.v2-rename {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.2rem 0.4rem;
  border: 1px solid #0b3d5c;
  border-radius: 3px;
  background: #fff;
  color: #0b3d5c;
  font: inherit;
  font-weight: 600;
  outline: none;
  box-shadow: 0 0 0 2px rgba(11, 61, 92, 0.12);
  user-select: text;
}
.v2-art-main {
  flex: 1;
  min-width: 0;
}
.v2-art-meta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.v2-row.is-on .v2-art-meta {
  opacity: 0.95;
}
.v2-sommaire {
  padding: 0.85rem 1rem 1.2rem;
}
.v2-sommaire-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.7rem 0;
  border-bottom: 1px dotted rgba(11, 61, 92, 0.18);
}
.v2-sommaire-num {
  flex-shrink: 0;
  min-width: 1.6rem;
  color: #0b3d5c;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
.v2-sommaire-title {
  color: #1a1a1a;
  font-size: 0.92rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}
.v2-sommaire-dots {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 1px dotted #c5ced6;
  transform: translateY(-0.35rem);
}
.v2-sommaire-page {
  flex-shrink: 0;
  color: #7eb8d4;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.v2-plus:disabled,
.v2-minus:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}
.v2-row:hover {
  color: var(--arco-blue);
  background: #dde1e6;
}
/* Impression validée — vert */
.v2-row.is-print {
  background: #3cb371;
  border-left-color: #2a9a5c;
  color: #fff;
}
.v2-row.is-print:hover {
  background: #34a566;
  color: #fff;
}
/* Ouvrage en cours de travail — vert foncé (un seul à la fois) */
.v2-row.is-on {
  background: #0f4a2e;
  border-left-color: #08301e;
  color: #fff;
}
.v2-row.is-on:hover {
  background: #0c3f27;
  color: #fff;
}
.v2-row.is-on.is-print {
  background: #0a3320;
  border-left-color: #062418;
  color: #fff;
}
.v2-row.is-on.is-print:hover {
  background: #082b1b;
  color: #fff;
}
.v2-shell {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(11, 61, 92, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(11, 61, 92, 0.05);
}
.v2-shell-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(11, 61, 92, 0.07);
  background: linear-gradient(180deg, #fbfaf8 0%, #f4f1eb 100%);
}
.v2-shell .table {
  margin: 0;
}
.v2-shell .table thead th {
  background: transparent;
  border-bottom-color: rgba(11, 61, 92, 0.08);
  color: rgba(11, 61, 92, 0.45);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v2-shell .table tbody td {
  border-color: rgba(11, 61, 92, 0.05);
  vertical-align: middle;
}
.v2-create {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(11, 61, 92, 0.08);
  border-radius: 18px;
  padding: 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 12px 28px rgba(11, 61, 92, 0.04);
}
.v2-picker {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(28rem, calc(100vw - 2rem));
  width: 100%;
}
.v2-picker::backdrop {
  background: rgba(11, 61, 92, 0.38);
  backdrop-filter: blur(4px);
}
.v2-picker-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 61, 92, 0.22);
  border: 1px solid rgba(11, 61, 92, 0.08);
}
.v2-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 0.85rem;
  background: linear-gradient(180deg, #fbfaf8 0%, #f4f1eb 100%);
  border-bottom: 1px solid rgba(11, 61, 92, 0.07);
}
.v2-picker-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 61, 92, 0.45);
}
.v2-picker-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--arco-blue);
  letter-spacing: -0.02em;
}
.v2-picker-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 61, 92, 0.06);
  color: var(--arco-blue);
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.v2-picker-close:hover {
  background: rgba(11, 61, 92, 0.12);
}
.v2-picker-search {
  padding: 0.85rem 1.15rem 0.55rem;
}
.v2-picker-search .v2-bar-input {
  max-width: none;
  width: 100%;
}
.v2-picker-list {
  max-height: min(22rem, 52vh);
  overflow: auto;
  padding: 0.35rem 0.65rem 0.85rem;
}
.v2-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  padding: 0.75rem 0.85rem;
  color: var(--arco-blue);
  font-size: 0.92rem;
  font-weight: 550;
  transition: background 0.12s ease;
}
.v2-picker-item:hover,
.v2-picker-item:focus-visible {
  background: rgba(11, 61, 92, 0.05);
  outline: none;
}
.v2-picker-item.is-picked {
  background: rgba(47, 158, 99, 0.14);
  color: #145c3a;
}
.v2-picker-item.is-picked::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #2f9e63;
  box-shadow: 0 0 0 3px rgba(47, 158, 99, 0.2);
  margin-right: 0.15rem;
}
.v2-picker-item.is-picked span:first-child {
  flex: 1;
}
.v2-picker-meta {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(11, 61, 92, 0.4);
  letter-spacing: 0.02em;
}
.v2-picker-empty {
  margin: 0;
  padding: 1.75rem 1rem;
  text-align: center;
  color: rgba(11, 61, 92, 0.4);
  font-size: 0.88rem;
  line-height: 1.45;
}
.v2-picker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem 1rem;
  border-top: 1px solid rgba(11, 61, 92, 0.08);
  background: #fff;
}
.v2-picker-link {
  border: 0;
  background: transparent;
  color: rgba(11, 61, 92, 0.55);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}
.v2-picker-link:hover {
  color: var(--arco-blue);
}
.v2-picker-foot .btn:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 800px) {
  .v2-workspace {
    grid-template-columns: 1fr;
    min-height: 70dvh;
  }
  .v2-pane {
    min-height: 16rem;
    border-right: 0;
    border-bottom: 1px solid rgba(11, 61, 92, 0.07);
  }
  .v2-bar-input {
    max-width: none;
  }
}

/* —— OFFRE_V2 layout type SelectLine (bleu ARCO) —— */
.arco-body.v2-offre {
  background: #e8edf2;
}
.arco-body.v2-offre .arco-content {
  padding: 0;
  min-height: calc(100dvh - 3.5rem);
}
.arco-body.v2-offre .v2-app {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 3.5rem);
  background: #e8edf2;
}
.arco-body.v2-offre .v2-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  min-height: 3.1rem;
  padding: 0.55rem 1.1rem;
  background: var(--arco-blue);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
.arco-body.v2-offre .v2-app-bar-left,
.arco-body.v2-offre .v2-app-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.arco-body.v2-offre .v2-app-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1rem;
  line-height: 1;
}
.arco-body.v2-offre .v2-app-back:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.arco-body.v2-offre .v2-app-brand-kicker {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 700;
}
.arco-body.v2-offre .v2-app-brand-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.arco-body.v2-offre .v2-app-bar .v2-status {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: none;
}
.arco-body.v2-offre .v2-app-bar .v2-status.is-ok {
  background: rgba(47, 158, 99, 0.25);
  border-color: rgba(255, 255, 255, 0.25);
  color: #e8fff2;
}
.arco-body.v2-offre .v2-app-bar .v2-status.is-busy {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.arco-body.v2-offre .v2-app-bar .v2-pdf-btn {
  border-radius: 6px;
  background: #fff;
  color: var(--arco-blue);
  box-shadow: none;
  min-width: 4.5rem;
  padding: 0.42rem 0.9rem;
}
.arco-body.v2-offre .v2-app-bar .v2-pdf-btn:hover {
  background: #eef4f8;
  transform: none;
}
.arco-body.v2-offre .v2-app-body {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  background: #fff;
  border-left: 0;
}
.arco-body.v2-offre .v2-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
  border-right: 1px solid #d9e0e7;
}
.arco-body.v2-offre .v2-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem 0.45rem;
}
.arco-body.v2-offre .v2-side-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--arco-blue);
}
.arco-body.v2-offre .v2-side-ops,
.arco-body.v2-offre .v2-main-ops {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.arco-body.v2-offre .v2-side-search {
  padding: 0.35rem 0.9rem 0.65rem;
}
.arco-body.v2-offre .v2-side-search .v2-bar-input,
.arco-body.v2-offre .v2-main-ops .v2-bar-input {
  max-width: none;
  width: 100%;
  border-radius: 6px;
  border-color: #d4dce5;
  background: #f7f9fb;
}
.arco-body.v2-offre .v2-icon-btn {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 6px;
  font-size: 1.05rem;
}
.arco-body.v2-offre .v2-plus {
  background: var(--arco-blue);
}
.arco-body.v2-offre .v2-plus:hover {
  background: var(--arco-blue-2);
  transform: none;
}
.arco-body.v2-offre .v2-minus {
  border-color: #d4dce5;
  color: var(--arco-blue);
  background: #fff;
}
.arco-body.v2-offre .v2-side-list,
.arco-body.v2-offre .v2-main-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
}
.arco-body.v2-offre .v2-side-foot {
  display: flex;
  justify-content: flex-end;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid #e4e9ee;
  background: #f7f9fb;
}
.arco-body.v2-offre .v2-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
}
.arco-body.v2-offre .v2-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid #e4e9ee;
}
.arco-body.v2-offre .v2-main-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2a33;
  letter-spacing: -0.02em;
}
.arco-body.v2-offre .v2-main-sub {
  margin: 0.25rem 0 0;
  color: #7a8794;
  font-size: 0.84rem;
}
.arco-body.v2-offre .v2-main-ops {
  min-width: min(100%, 22rem);
}
.arco-body.v2-offre .v2-section-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 1.15rem;
  background: #eef2f5;
  color: var(--arco-blue);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #e0e6ec;
}
.arco-body.v2-offre .v2-detail-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.04em;
  font-weight: 750;
  color: #c62828;
  text-transform: lowercase;
}
.arco-body.v2-offre .v2-detail-check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #c62828;
  cursor: pointer;
}
.arco-body.v2-offre .v2-sommaire-articles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 5.5rem;
  margin: 0 1.15rem 0.15rem 0.15rem;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-bottom: 1px solid #edf1f4;
}
.arco-body.v2-offre .v2-sommaire-art {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.28rem 0;
  color: #5a6570;
  font-size: 0.84rem;
  font-weight: 500;
}
.arco-body.v2-offre .v2-sommaire-art-num {
  flex-shrink: 0;
  min-width: 1.5rem;
  color: #c62828;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}
.arco-body.v2-offre .v2-app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  min-height: 2rem;
  padding: 0.35rem 1.1rem;
  background: var(--arco-blue);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
}
.arco-body.v2-offre .v2-row-wrap {
  border-bottom: 1px solid #edf1f4;
  background: #fff;
}
.arco-body.v2-offre .v2-row-wrap:hover {
  background: #f5f8fb;
}
.arco-body.v2-offre .v2-print-dot {
  background: transparent;
  border-bottom: 0;
  width: 2.2rem;
}
.arco-body.v2-offre .v2-print-dot.is-on::before {
  border-color: var(--arco-blue);
  background: var(--arco-blue);
  box-shadow: 0 0 0 3px rgba(11, 61, 92, 0.15);
}
.arco-body.v2-offre .v2-row {
  background: transparent;
  border-bottom: 0;
  border-left: 3px solid transparent;
  color: #3a4652;
  font-weight: 500;
  padding: 0.72rem 0.95rem;
  user-select: none;
}
.arco-body.v2-offre .v2-row:hover {
  background: transparent;
  color: var(--arco-blue);
}
.arco-body.v2-offre .v2-row.is-print {
  background: transparent;
  color: #3a4652;
  border-left-color: transparent;
}
.arco-body.v2-offre .v2-row.is-on,
.arco-body.v2-offre .v2-row.is-on.is-print {
  background: rgba(11, 61, 92, 0.07);
  border-left-color: var(--arco-blue);
  color: var(--arco-blue);
}
.arco-body.v2-offre .v2-row.is-on:hover,
.arco-body.v2-offre .v2-row.is-on.is-print:hover {
  background: rgba(11, 61, 92, 0.1);
  color: var(--arco-blue);
}
.arco-body.v2-offre .v2-num {
  color: var(--arco-blue);
  opacity: 0.75;
}
.arco-body.v2-offre .v2-client-alert {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(28rem, calc(100vw - 2rem));
}
.arco-body.v2-offre .v2-client-alert::backdrop {
  background: rgba(80, 12, 18, 0.45);
}
.arco-body.v2-offre .v2-client-alert-card {
  background: #b71c1c;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(80, 12, 18, 0.35);
  overflow: hidden;
}
.arco-body.v2-offre .v2-client-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem 0.55rem;
}
.arco-body.v2-offre .v2-client-alert-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
}
.arco-body.v2-offre .v2-client-alert-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}
.arco-body.v2-offre .v2-client-alert-body {
  padding: 0.25rem 1.1rem 0.85rem;
}
.arco-body.v2-offre .v2-client-alert-body p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.arco-body.v2-offre .v2-client-alert-body ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  font-weight: 650;
}
.arco-body.v2-offre .v2-client-alert-body li {
  margin: 0.2rem 0;
}
.arco-body.v2-offre .v2-client-alert-hint {
  opacity: 0.88;
  font-size: 0.82rem !important;
}
.arco-body.v2-offre .v2-client-alert-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem 1rem;
  background: rgba(0, 0, 0, 0.12);
}
.arco-body.v2-offre .v2-sommaire {
  padding: 0.35rem 0 1rem;
}
.arco-body.v2-offre .v2-sommaire-row {
  margin: 0 1.15rem;
  padding: 0.75rem 0.25rem;
  border-bottom-color: #e4e9ee;
}
.arco-body.v2-offre .v2-empty {
  color: #8a97a3;
}
.arco-body.v2-offre .v2-order-group {
  border-radius: 6px;
  background: #fff;
  border-color: #d4dce5;
  box-shadow: none;
}
@media (max-width: 900px) {
  .arco-body.v2-offre .v2-app-body {
    grid-template-columns: 1fr;
  }
  .arco-body.v2-offre .v2-side {
    max-height: 40dvh;
    border-right: 0;
    border-bottom: 1px solid #d9e0e7;
  }
}
