body {
  font-family: Arial, sans-serif;
  margin: 0;
  color: #1f2937;
  background: #f7f9fc;
}

.header {
  background: #0f172a;
  color: #fff;
  padding: 16px 24px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
}

.panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.report-sheet {
  background: #f8fafc;
}

.report-main-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1e3a5f;
  margin: 4px 0 14px;
}

.report-prospect-banner {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid #cbd5e1;
  margin-bottom: 12px;
}

.report-prospect-label {
  background: #1f3c68;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 12px;
}

.report-prospect-value {
  background: #e2e8f0;
  color: #1f3c68;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 12px;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #d1d5db;
  margin-bottom: 8px;
}

.report-meta-grid > div {
  padding: 10px 12px;
  border-right: 1px solid #d1d5db;
}

.report-meta-grid > div:last-child {
  border-right: none;
}

.report-discreet-meta {
  margin: 6px 0 2px;
  font-size: 12px;
  color: #64748b;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

input, button {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

button {
  cursor: pointer;
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

.btn-secondary {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #111827;
}

.btn-danger {
  background: #dc2626;
  border-color: #b91c1c;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  transition: all 0.15s ease;
}

.action-link-view {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
  font-weight: 600;
}

.action-link-view:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.action-link-view:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.action-link-chat {
  color: #059669;
  background: #ecfdf5;
  border-color: #a7f3d0;
  font-weight: 600;
}

.action-link-chat:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}

.action-link-chat:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 2px;
}

.delete-button {
  background: #dc2626;
  border-color: #b91c1c;
}

.muted {
  color: #6b7280;
}

.progress-log {
  margin-top: 10px;
  white-space: pre-wrap;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 10px;
  min-height: 60px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  padding: 8px;
}

/* ── Chat contextuel (prospect page) ── */
.chat-panel {
  position: relative;
  padding-bottom: 0;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chat-title {
  margin: 0;
  font-size: 20px;
  color: #1f3c68;
}

.chat-prospect-badge {
  font-size: 12px;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 3px 12px;
  white-space: nowrap;
}

.chat-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-clear-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.chat-clear-btn:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.chat-clear-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-export-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.chat-export-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-export-wrap {
  position: relative;
}

.chat-export-caret {
  margin-left: 2px;
  transition: transform 0.15s;
}

.chat-export-wrap.open .chat-export-caret {
  transform: rotate(180deg);
}

.chat-export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 20;
  min-width: 180px;
  overflow: hidden;
}

.chat-export-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  border-radius: 0;
  background: #fff;
  color: #334155;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s;
}

.chat-export-option:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.chat-export-option + .chat-export-option {
  border-top: 1px solid #f1f5f9;
}

.chat-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chat-chip {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.chat-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
  padding: 16px 4px 16px 0;
  scroll-behavior: smooth;
}

.chat-messages:empty {
  display: none;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  animation: chatFadeIn 0.25s ease;
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble-user {
  align-self: flex-end;
  background: #1d4ed8;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble-model {
  align-self: flex-start;
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.chat-bubble-model p {
  margin: 0 0 8px;
}

.chat-bubble-model p:last-child {
  margin-bottom: 0;
}

.chat-bubble-model ul,
.chat-bubble-model ol {
  margin: 4px 0 8px;
  padding-left: 20px;
}

.chat-bubble-model li {
  margin: 2px 0;
}

.chat-bubble-model strong {
  color: #0f172a;
}

.chat-bubble-model code {
  background: #e2e8f0;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
}

.chat-bubble-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  opacity: 0.7;
}

.chat-bubble-user .chat-bubble-label {
  text-align: right;
}

.chat-typing {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  animation: chatFadeIn 0.25s ease;
}

.chat-typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  animation: chatTyping 1.4s infinite ease-in-out;
}

.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatTyping {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 0 16px;
  position: sticky;
  bottom: 0;
  background: #fff;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.chat-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #1d4ed8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: #1e40af;
}

.chat-send-btn:active {
  transform: scale(0.93);
}

.chat-send-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.chat-empty {
  text-align: center;
  padding: 20px;
  color: #94a3b8;
  font-size: 14px;
}

.chat-error {
  align-self: center;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
}

.json-block {
  background: #0b1020;
  color: #e5e7eb;
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
}

.json-accordion summary {
  cursor: pointer;
  user-select: none;
  color: #1d4ed8;
  font-weight: 600;
  margin-bottom: 10px;
}

.json-accordion[open] summary {
  margin-bottom: 12px;
}

.fiche-section {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fbfdff;
}

.report-section-title {
  margin: 18px 0 8px;
  text-transform: uppercase;
  color: #1f3c68;
  font-size: 20px;
  line-height: 1.1;
}

.report-subsection-title {
  margin: 20px 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #1e3a5f;
  text-transform: none;
  letter-spacing: 0.02em;
}

.report-subsection-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.report-table-veille-merge {
  margin-top: 4px;
}

.report-table-veille-merge th {
  width: 28%;
}

.report-list {
  margin: 0;
  padding-left: 18px;
}

.report-list li {
  margin: 4px 0;
}

.value-muted {
  color: #6b7280;
  font-style: italic;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d1d5db;
  margin-bottom: 14px;
}

.report-table th,
.report-table td {
  border: 1px solid #d1d5db;
  padding: 9px 10px;
  vertical-align: top;
  background: #fff;
}

.report-table th {
  width: 30%;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
}

.report-inner-table {
  width: 100%;
  border-collapse: collapse;
}

.report-inner-table th,
.report-inner-table td {
  border: 1px dashed #d1d5db;
  padding: 6px 8px;
}

.report-inner-table th {
  width: 34%;
  background: #f8fafc;
}

.report-subcards {
  display: grid;
  gap: 8px;
}

.report-subcard {
  border: 1px solid #dbe2ea;
  border-radius: 6px;
  padding: 8px;
  background: #f8fbff;
}

.report-link {
  color: #1d4ed8;
  text-decoration: underline;
  word-break: break-all;
}

.acro-tip {
  border-bottom: 1px dotted #1d4ed8;
  cursor: help;
}

.score-note {
  margin-left: 6px;
  color: #64748b;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 16px;
}

/* ── SWOT Grid ── */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 2px solid #1f3c68;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.swot-cell {
  padding: 14px;
  min-height: 120px;
}

.swot-cell h4 {
  margin: 0 0 8px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.swot-cell ul {
  margin: 0;
  padding-left: 18px;
}

.swot-cell li {
  margin: 3px 0;
  font-size: 14px;
}

.swot-forces {
  background: #ecfdf5;
  border-right: 1px solid #1f3c68;
  border-bottom: 1px solid #1f3c68;
}

.swot-forces h4 {
  color: #065f46;
}

.swot-faiblesses {
  background: #fef2f2;
  border-bottom: 1px solid #1f3c68;
}

.swot-faiblesses h4 {
  color: #991b1b;
}

.swot-opportunites {
  background: #eff6ff;
  border-right: 1px solid #1f3c68;
}

.swot-opportunites h4 {
  color: #1e40af;
}

.swot-menaces {
  background: #fffbeb;
}

.swot-menaces h4 {
  color: #92400e;
}

.swot-synthese {
  margin-top: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
}

/* ── Maturité digitale ── */
.maturite-global {
  font-size: 18px;
  margin-bottom: 14px;
  color: #1f3c68;
}

.maturite-axes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.maturite-axe-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.maturite-label {
  font-weight: 600;
  font-size: 14px;
}

.maturite-value {
  font-weight: 700;
  font-size: 14px;
  color: #1f3c68;
}

.maturite-bar {
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.maturite-fill {
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  border-radius: 6px;
  transition: width 0.6s ease;
}

.maturite-comment {
  font-size: 13px;
  color: #475569;
  margin-top: 3px;
}

.maturite-recos {
  margin-top: 10px;
  padding: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
}

/* ── Benchmark concurrentiel ── */
.benchmark-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d1d5db;
  font-size: 13px;
}

.benchmark-table th {
  background: #1f3c68;
  color: #fff;
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.benchmark-table td {
  border: 1px solid #d1d5db;
  padding: 8px;
  vertical-align: top;
  background: #fff;
}

.benchmark-table tbody tr:nth-child(odd) td {
  background: #f8fafc;
}

.benchmark-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.benchmark-col {
  padding: 10px;
  border-radius: 6px;
}

.benchmark-avantages {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.benchmark-vulns {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

/* ── Objections anticipées ── */
.objection-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.objection-card {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.objection-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.objection-text {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}

.objection-proba {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  text-transform: uppercase;
}

.proba-haute {
  background: #fecaca;
  color: #991b1b;
}

.proba-moyenne {
  background: #fef3c7;
  color: #92400e;
}

.proba-basse {
  background: #d1fae5;
  color: #065f46;
}

.objection-response,
.objection-argument {
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}

/* ── Profil décideur ── */
.decideur-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.decideur-card {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.decideur-header {
  font-size: 16px;
  margin-bottom: 8px;
  color: #1f3c68;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.decideur-linkedin {
  margin-bottom: 8px;
}

.decideur-detail {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.decideur-approche,
.decideur-sensibles {
  margin-top: 12px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}

/* ── Cartographie / organigramme ── */
.org-intro {
  margin: 0 0 10px;
  font-size: 14px;
}

.org-synthese {
  margin-bottom: 14px;
  padding: 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
}

/* Vue tableau (par défaut) — compacte */
.org-table-wrap {
  overflow-x: auto;
  margin: 12px 0 16px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

.org-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.org-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #1e3a5f;
  color: #fff;
  text-align: left;
  padding: 10px 8px;
  font-weight: 600;
  white-space: nowrap;
}

.org-table tbody td {
  border-top: 1px solid #e2e8f0;
  padding: 8px;
  vertical-align: top;
  color: #334155;
  line-height: 1.45;
}

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

.org-th-hier,
.org-td-hier {
  max-width: 160px;
  font-size: 12px;
  color: #64748b;
}

.org-td-name {
  white-space: nowrap;
}

.org-td-poste {
  max-width: 200px;
}

.org-td-detail {
  max-width: 320px;
  font-size: 12px;
}

.org-cell-line {
  margin-top: 4px;
}

.org-cell-line:first-child {
  margin-top: 0;
}

.org-cell-label {
  display: inline-block;
  min-width: 3.2rem;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.org-th-pri,
.org-td-pri {
  text-align: center;
  white-space: nowrap;
}

.org-th-li,
.org-td-li {
  text-align: center;
  white-space: nowrap;
}

.org-td-src {
  max-width: 180px;
  font-size: 11px;
  color: #64748b;
}

.org-truncate {
  cursor: help;
  border-bottom: 1px dotted #94a3b8;
}

.org-source-foot {
  margin: 0 0 12px;
  padding: 8px 10px;
  font-size: 12px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

.org-tree-details {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.org-tree-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #1e3a5f;
  list-style: none;
}

.org-tree-summary::-webkit-details-marker {
  display: none;
}

.org-tree-summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}

.org-tree-details[open] .org-tree-summary::before {
  transform: rotate(90deg);
}

.org-chart-nested {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.org-chart {
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.org-roots {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
}

.org-tree-root {
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 100%;
}

.org-node-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-node {
  position: relative;
  min-width: 220px;
  max-width: 320px;
  padding: 12px 14px;
  background: #fff;
  border: 2px solid #1f3c68;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.org-node-title {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
}

.org-node-role {
  font-size: 13px;
  color: #334155;
  margin-top: 4px;
}

.org-pertinence {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pert-prioritaire {
  background: #1e3a5f;
  color: #fff;
}

.pert-utile {
  background: #dbeafe;
  color: #1e40af;
}

.pert-secondaire {
  background: #e2e8f0;
  color: #475569;
}

.org-node-meta {
  margin-top: 8px;
  font-size: 12px;
  text-align: left;
  color: #475569;
  line-height: 1.45;
}

.org-node-source {
  font-size: 11px;
  font-style: italic;
  color: #64748b;
}

.org-linkedin {
  margin-top: 8px;
  font-size: 13px;
}

.org-children {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #cbd5e1;
  position: relative;
}

.org-children::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 16px;
  background: #94a3b8;
  margin-top: -16px;
}

.org-node-wrap > .org-children {
  width: 100%;
}

.org-node-wrap .org-node-wrap > .org-node::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 18px;
  background: #94a3b8;
}

.org-node-wrap .org-tree-root .org-node::before,
.org-tree-root > .org-node-wrap > .org-node::before {
  display: none;
}

/* ── Marchés publics BOAMP ── */
.boamp-meta {
  font-size: 14px;
  margin: 0 0 8px;
  color: #334155;
}

.boamp-synthese {
  margin-bottom: 12px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.boamp-table-wrap {
  overflow-x: auto;
  margin: 10px 0;
}

.boamp-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d1d5db;
  font-size: 12px;
}

.boamp-table th {
  background: #0f766e;
  color: #fff;
  padding: 8px 6px;
  text-align: left;
  font-weight: 600;
}

.boamp-table td {
  border: 1px solid #d1d5db;
  padding: 8px 6px;
  vertical-align: top;
  background: #fff;
}

.boamp-table tbody tr:nth-child(odd) td {
  background: #f0fdfa;
}

.boamp-angles {
  margin-top: 12px;
  font-size: 14px;
}

/* Export PDF (impression navigateur) */
.report-pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.report-pdf-btn {
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
}

.report-pdf-hint {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
  max-width: 52rem;
}

@media print {
  @page {
    margin: 12mm;
    size: A4;
  }

  body {
    background: #fff !important;
    color: #111827;
    font-size: 11pt;
  }

  .header,
  .no-print,
  .report-pdf-exclude,
  .report-pdf-toolbar,
  .chat-panel,
  #chatClearModal {
    display: none !important;
  }

  .container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .panel {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .report-sheet {
    background: #fff !important;
  }

  .report-prospect-banner,
  .report-meta-grid {
    break-inside: avoid;
  }

  .report-section-wrap {
    break-inside: avoid;
    margin-bottom: 10px;
  }

  h3.report-section-title {
    break-after: avoid;
    font-size: 13pt;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 4px;
    margin-top: 14px;
  }

  .report-table {
    font-size: 10pt;
  }

  .benchmark-table-wrap,
  .boamp-table-wrap {
    overflow: visible !important;
  }

  .org-chart {
    break-inside: avoid;
  }

  a.report-link {
    color: #1d4ed8;
    text-decoration: underline;
  }
}

