/* Composant « rapport-exemple » interactif — chargé sur agent-geo + accueil */
.demo-report { max-width: 1040px; margin: 0 auto; }

/* Sélecteur de secteur */
.dr-pills { display: inline-flex; gap: 6px; padding: 4px; margin: 0 0 16px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 999px; }
.dr-pill { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  color: var(--text-mute); transition: color .15s ease, background .15s ease; cursor: pointer; white-space: nowrap; }
.dr-pill:hover { color: var(--text-2); }
.dr-pill.is-active { color: var(--text); background: var(--surface); border: 1px solid var(--border-3); }

/* Carte rapport */
.dr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 44px; padding: 0 16px; border: 1px solid var(--border-2); border-bottom: 0;
  border-radius: 12px 12px 0 0; background: #0d0d0d; }
.dr-head-title { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.dr-tag { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-mute); background: var(--surface-2); border: 1px solid var(--border-2);
  padding: 3px 8px; border-radius: 999px; white-space: nowrap; }

.dr-report { border: 1px solid var(--border-2); border-top: 0; background: var(--surface); }
.dr-report.dr-in { animation: drIn .4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes drIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dr-body { padding: 24px; display: grid; grid-template-columns: 1fr 1.7fr; gap: 20px; }
.dr-score-card { border: 1px solid var(--border); border-radius: 10px; padding: 22px; background: #070707; }
.dr-score-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mute); }
.dr-score-num { font-size: 56px; line-height: 1; letter-spacing: -.03em; font-weight: 500; margin: 14px 0 4px; }
.dr-score-num span { color: var(--text-mute); font-size: 28px; }
.dr-score-delta { font-family: var(--mono); font-size: 12px; color: var(--teal); margin-bottom: 16px; }
.dr-score-bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.dr-score-bar i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--teal-2)); }
.dr-report.dr-in .dr-score-bar i { animation: drBar 1.4s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes drBar { from { width: 0 !important; } }
.dr-score-foot { margin-top: 18px; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--text-mute); }

.dr-table-wrap { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #070707; }
table.dr-q { width: 100%; border-collapse: collapse; font-size: 13px; }
table.dr-q thead th { text-align: left; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-mute); font-weight: 400; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: #0a0a0a; }
table.dr-q tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
table.dr-q tbody tr:last-child td { border-bottom: 0; }
.dr-report.dr-in table.dr-q tbody tr { animation: drRow .5s ease both; }
.dr-report.dr-in table.dr-q tbody tr:nth-child(2) { animation-delay: .08s; }
.dr-report.dr-in table.dr-q tbody tr:nth-child(3) { animation-delay: .16s; }
.dr-report.dr-in table.dr-q tbody tr:nth-child(4) { animation-delay: .24s; }
@keyframes drRow { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dr-engine { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.dr-status { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px;
  border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 500; }
.dr-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }
.dr-status.cited { background: var(--teal-soft); color: var(--teal-2); }
.dr-status.cited::before { background: var(--teal-2); }
.dr-status.absent { background: var(--red-soft); color: var(--red); }
.dr-status.absent::before { background: var(--red); }

/* Recommandations */
.dr-recos { padding: 0 24px 22px; }
.dr-recos-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-mute); margin-bottom: 12px; }
.dr-reco-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dr-reco { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.dr-reco-impact { flex-shrink: 0; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 999px; margin-top: 1px; }
.dr-reco-impact.fort { background: var(--teal-soft); color: var(--teal-2); border: 1px solid rgba(29,158,117,.25); }
.dr-reco-impact.moyen { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border-2); }
.dr-reco-impact.faible { background: var(--surface-2); color: var(--text-mute); border: 1px solid var(--border-2); }

/* CTA */
.dr-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 24px 24px;
  height: 44px; border-radius: 8px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 500;
  transition: background .15s ease, transform .15s ease; }
.dr-cta:hover { background: var(--teal-2); transform: translateY(-1px); }
.dr-cta .dr-arrow { transition: transform .15s ease; }
.dr-cta:hover .dr-arrow { transform: translateX(2px); }

@media (max-width: 880px) {
  .dr-body { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dr-report.dr-in, .dr-report.dr-in .dr-score-bar i, .dr-report.dr-in table.dr-q tbody tr { animation: none !important; }
}
