:root {
  --navy: #0f172b;
  --terra: #0f172b;
  --safe: #1d293d;
  --ok: #006045;
  --warn: #973c00;
  --err: #9f0712;
  --bg: #fafafa;
  --card: #ffffff;
  --border: #e5e5e5;
  --text: #0f172b;
  --muted: #45556c;
  --code: #0f172b;
  --shadow: 0 1px 2px rgba(15, 23, 43, 0.04), 0 1px 3px rgba(15, 23, 43, 0.06);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

button, input, textarea {
  font: inherit;
}

select {
  font: inherit;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 229, 229, 0.95);
}

.header-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-shrink: 0;
}

.brand-title {
  color: var(--navy);
  font-family: inherit; font-weight: 600; letter-spacing: -0.015em;
  font-size: 22px;
  line-height: 1;
}

.site-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.header-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-step {
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 43, 0.06);
  border: 1px solid rgba(15, 23, 43, 0.09);
}

.header-step-sep {
  color: var(--muted);
  font-size: 12px;
}

.panel-kicker {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--terra);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace {
  display: grid;
  gap: 18px;
  padding: 0 28px 32px;
  max-width: 1440px;
  margin: 0 auto;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 18px;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .input-panel {
  display: none;
}

.panel {
  min-height: 680px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(229, 229, 229, 0.96);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.input-panel,
.reference-panel {
  padding: 20px;
}

.reference-band {
  min-height: auto;
  padding: 24px;
}

.reference-band-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 0;
}

.reference-band-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reference-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.reference-toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 12px;
}

.reference-toggle[aria-expanded="true"] .reference-toggle-icon {
  transform: rotate(180deg);
}

.reference-body {
  overflow: hidden;
  transition: margin-top 0.22s ease;
}

.reference-body--collapsed {
  display: none;
}

.reference-body:not(.reference-body--collapsed) {
  margin-top: 18px;
}

.result-panel-banner {
  padding: 24px 24px 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

/* ── Séquence nav ─────────────────────────────────── */
.sequence-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  background: #f8fafc;
}

.sequence-nav::-webkit-scrollbar {
  display: none;
}

.seq-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.seq-item.active {
  border-color: rgba(15, 23, 43, 0.35);
  box-shadow: 0 2px 8px rgba(15, 23, 43, 0.1);
  background: #fff;
}

.seq-select {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.seq-item.active .seq-select {
  color: var(--navy);
}

.seq-select .history-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.seq-select .history-text {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seq-select .history-score {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.seq-delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.seq-item:hover .seq-delete-btn,
.seq-item.active .seq-delete-btn {
  opacity: 1;
}

.seq-delete-btn:hover {
  background: #ffe2e2;
  color: var(--err);
}

/* ── Source tab ───────────────────────────────────── */
.source-panel-layout {
  display: grid;
  gap: 16px;
}

.source-delete-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(159, 7, 18, 0.18);
  background: #fef2f2;
}

.btn-danger {
  background: var(--err);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-danger:hover {
  background: #82181a;
}

/* ── Tool links descriptions ──────────────────────── */
.tool-link-desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
}

.result-panel-banner-copy {
  min-width: 0;
}

.result-panel-banner h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-family: inherit; font-weight: 600; letter-spacing: -0.015em;
  font-size: 30px;
}


.result-layout-btn {
  flex-shrink: 0;
}

.panel-head h2,
.empty-state h2,
.result-title-row h2 {
  margin: 0;
  color: var(--navy);
  font-family: inherit; font-weight: 600; letter-spacing: -0.015em;
  font-size: 28px;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafafa;
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(15, 23, 43, 0.6);
  box-shadow: 0 0 0 4px rgba(15, 23, 43, 0.12);
}

.field textarea {
  min-height: 320px;
  line-height: 1.55;
}

.input-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.btn-overflow {
  position: relative;
}

.btn-overflow summary {
  list-style: none;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.btn-overflow summary::-webkit-details-marker {
  display: none;
}

.btn-overflow-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 43, 0.12);
  padding: 6px;
  display: grid;
  gap: 2px;
}

.btn-overflow-menu button {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.btn-overflow-menu button:hover {
  background: var(--bg);
}

.btn-overflow-danger {
  color: var(--err) !important;
}

.btn-overflow-danger:hover {
  background: #ffe2e2 !important;
}

.input-help {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.btn-primary {
  background: var(--terra);
  color: #fff;
}

.btn-primary:hover {
  background: var(--safe);
}

.btn-secondary {
  background: rgba(15, 23, 43, 0.08);
  color: var(--navy);
}

.btn-secondary:hover {
  background: rgba(15, 23, 43, 0.14);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.message {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
}

.message.error {
  background: #ffe2e2;
  color: var(--err);
}

.message.info {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 43, 0.22);
}

.message.info strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.message.compact {
  padding: 10px 12px;
  margin-bottom: 12px;
}

.history {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.history-head span {
  color: var(--muted);
  font-size: 12px;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-list.empty {
  color: var(--muted);
  font-size: 13px;
}

.history-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fafafa;
  padding: 10px 12px;
  text-align: left;
}

.history-item:hover,
.history-item.active {
  border-color: rgba(15, 23, 43, 0.3);
  background: rgba(15, 23, 43, 0.08);
}

.history-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.history-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.history-score {
  color: var(--muted);
  font-size: 12px;
}

.result-panel {
  overflow: hidden;
}

.empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 680px;
  text-align: center;
  padding: 32px;
}

.empty-state-copy.hidden {
  display: none;
}

.empty-mark {
  margin-bottom: 12px;
  color: var(--terra);
  font-size: 42px;
}

.empty-state p {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.6;
}

.empty-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.empty-hint {
  color: var(--muted);
  font-size: 12px;
}

.draft-preview-wrap {
  width: min(100%, 1120px);
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.draft-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.draft-preview-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.draft-preview {
  padding: 18px;
  min-height: 520px;
  max-height: 720px;
  overflow: auto;
  text-align: left;
}

.result-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.74), rgba(255, 255, 255, 0.72));
}

.score-card {
  position: relative;
  width: 92px;
  height: 92px;
}

.score-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
}

.score-text strong {
  color: var(--navy);
  font-size: 26px;
}

.score-text span {
  color: var(--muted);
  font-size: 12px;
}

.ring-bg,
.ring-value {
  fill: none;
  stroke-width: 8;
}

.ring-bg {
  stroke: #e5e5e5;
}

.ring-value {
  stroke: var(--terra);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dasharray 0.3s ease, stroke 0.3s ease;
}

.result-summary {
  min-width: 0;
}

.result-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-chip,
.severity-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.result-meta {
  margin: 8px 0 12px;
  color: var(--muted);
}

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

.tabs {
  display: flex;
  gap: 8px;
  align-self: start;
}

.tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.result-body {
  padding: 24px;
}

.issue-list {
  display: grid;
  gap: 10px;
}

.issue-list.grouped {
  gap: 14px;
}

.issue-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.issue-card.grouped {
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.issue-card.grouped:hover {
  border-color: rgba(15, 23, 43, 0.35);
  box-shadow: 0 8px 22px rgba(15, 23, 43, 0.07);
}

.issue-card.grouped.active {
  border-color: rgba(159, 7, 18, 0.45);
  box-shadow: 0 0 0 3px rgba(159, 7, 18, 0.08);
}

.issue-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 16px;
  align-items: start;
}

.issue-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.issue-title {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 14px;
}

.issue-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.issue-meta {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.issue-problem-line {
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}

.issue-problem-line code {
  display: inline-block;
  margin-left: 6px;
  background: #f1f5f9;
  color: #45556c;
  padding: 2px 6px;
  border-radius: 8px;
}

.code-snippet {
  background: var(--code);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 12px;
}

.fix-box {
  border-left: 4px solid var(--ok);
  background: #ecfdf5;
  color: #006045;
  padding: 12px 14px;
}

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

.fix-list li {
  margin-bottom: 6px;
  line-height: 1.55;
}

.issue-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.issue-preview-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fafafa;
}

.issue-preview-card strong {
  display: block;
  padding: 10px 12px;
  background: #f8fafc;
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.issue-preview-frame {
  padding: 14px;
  min-height: 160px;
  overflow: auto;
  background: #fff;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.preview-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.preview-card strong {
  display: block;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-card .before {
  background: #ffe2e2;
  color: var(--err);
}

.preview-card .after {
  background: #d0fae5;
  color: var(--ok);
}

.preview-frame {
  padding: 18px;
  min-height: 220px;
  overflow: auto;
}

.email-preview-stage,
.issue-preview-frame,
.draft-preview {
  background-image:
    linear-gradient(rgba(15, 23, 43, 0.025), rgba(15, 23, 43, 0.025)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 19px,
      rgba(229, 229, 229, 0.65) 20px
    );
}

.code-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.code-block {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--code);
  color: #e2e8f0;
  max-height: 560px;
  overflow: auto;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.report-layout {
  display: grid;
  gap: 16px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.report-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
}

.report-card h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 16px;
}

.report-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.report-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.report-hero h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: inherit; font-weight: 600; letter-spacing: -0.015em;
  font-size: 28px;
}

.report-hero-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.report-verdict-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-metric {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.report-metric strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-family: inherit; font-weight: 600; letter-spacing: -0.015em;
  font-size: 26px;
}

.report-metric span {
  color: var(--muted);
  font-size: 12px;
}

.report-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.report-list li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.report-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checklist-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #fafafa;
}

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

.report-summary-block {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.65;
}

.reference-cards {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.reference-cards-wide {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: stretch;
}

.ref-card {
  padding: 14px;
  border-radius: 14px;
  background: #fafafa;
  border-left: 4px solid var(--terra);
}

.ref-card-button {
  width: 100%;
  border-top: none;
  border-right: none;
  border-bottom: none;
  text-align: left;
  cursor: pointer;
}

.ref-card-button.active {
  background: rgba(15, 23, 43, 0.1);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 43, 0.18);
}

.ref-card h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 14px;
}

.ref-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.reference-detail {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
}

.reference-detail-inline {
  margin-top: 4px;
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.7fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.audit-visual-panel {
  min-width: 0;
}

.audit-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.audit-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.audit-legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(15, 23, 43, 0.04);
}

.audit-source-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.audit-source-stage {
  max-height: 1040px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.74), rgba(255, 255, 255, 0.94));
}

.audit-source-inner {
  position: relative;
  min-height: 720px;
  padding: 0;
}

.audit-pin-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.audit-pin {
  position: absolute;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 43, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.audit-pin.active {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 10px 22px rgba(15, 23, 43, 0.28);
}

.annotated-target {
  position: relative;
  scroll-margin-top: 24px;
}

.audit-list-panel {
  min-width: 0;
  max-width: 560px;
}

.audit-list-head {
  margin: 4px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: #45556c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reference-detail h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 16px;
}

.reference-detail p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.reference-detail ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.reference-detail li {
  margin-bottom: 6px;
  line-height: 1.55;
}

.reference-sources {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.reference-sources strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reference-source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fafafa;
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  background: #fafafa;
  border: 1px solid var(--border);
}

.reference-note {
  margin-top: 8px;
}

.tool-links a:hover {
  border-color: rgba(15, 23, 43, 0.4);
  background: rgba(15, 23, 43, 0.08);
}

.muted-note {
  color: var(--muted);
  font-size: 13px;
}

.hybrid-rgpd-note {
  margin-top: 6px !important;
  padding-top: 6px;
  border-top: 1px solid rgba(15, 23, 43, 0.15);
  font-size: 12px !important;
  color: var(--muted) !important;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: auto;
  }

  .empty-state {
    min-height: 360px;
  }

  .reference-band-head {
    grid-template-columns: 1fr;
  }

  .audit-layout {
    grid-template-columns: 1fr;
  }

  .report-grid,
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .header-steps {
    display: none;
  }

  .workspace {
    padding-left: 16px;
    padding-right: 16px;
  }

  .result-head,
  .code-panel-head,
  .result-panel-banner {
    display: block;
  }

  .tabs,
  .severity-summary,
  .input-actions {
    margin-top: 12px;
  }

  .preview-grid,
  .issue-preview-grid {
    grid-template-columns: 1fr;
  }

  .reference-cards-wide {
    grid-template-columns: 1fr;
  }

  .draft-preview {
    min-height: 380px;
  }

  .report-hero {
    flex-direction: column;
  }

  .report-hero-actions {
    justify-items: start;
  }
}

/* ═══════════════════════════════════════════════════════════════ CODE / DIFF */

.code-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.code-badge--local {
  background: #d0fae5;
  color: var(--ok);
}

.code-badge--ai {
  background: #fef3c6;
  color: var(--warn);
}

.diff-toggle-row {
  margin-bottom: 10px;
}

.diff-block {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 14px;
  background: #0f172b;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  max-height: 320px;
  overflow: auto;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.diff-add  { color: #81c784; }
.diff-del  { color: #e57373; }
.diff-same { color: #94a3b8; }

.btn-danger {
  background: #ffe2e2;
  color: var(--err);
  border: 1px solid rgba(159, 7, 18, 0.2);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.btn-danger:hover {
  background: #ffc9c9;
}

/* ═══════════════════════════════════════════════════════════════ PRINT / PDF */

@media print {
  /* Masquer tout sauf le cadre d'impression */
  .landing, .site-header, .site-footer,
  .reference-panel, .input-panel,
  .result-panel-banner, .sequence-nav,
  .empty-state, .result-head, .tabs,
  .tab-panel, .modal-overlay,
  #empty-sample-btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-family: inherit;
    font-size: 11pt;
  }

  #print-frame {
    display: block !important;
  }
}

/* Cadre d'impression (caché à l'écran, visible à l'impression) */
#print-frame {
  display: none;
}

@media print {
  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2pt solid #0f172b;
    padding-bottom: 10pt;
    margin-bottom: 18pt;
  }

  .print-logo {
    font-size: 20pt;
    font-weight: 700;
    color: #0f172b;
    letter-spacing: -0.02em;
  }

  .print-meta {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 9pt;
    color: #45556c;
    gap: 2pt;
  }

  .print-title {
    font-size: 18pt;
    color: #0f172b;
    margin: 0 0 4pt;
  }

  .print-subtitle {
    font-size: 11pt;
    color: #45556c;
    margin: 0 0 16pt;
  }

  .print-score-row {
    display: flex;
    align-items: center;
    gap: 14pt;
    margin-bottom: 22pt;
  }

  .print-score {
    font-size: 36pt;
    font-weight: 700;
    color: #0f172b;
  }

  .print-score span {
    font-size: 14pt;
    color: #45556c;
  }

  .print-verdict {
    padding: 4pt 10pt;
    border-radius: 4pt;
    font-size: 10pt;
    font-weight: 700;
  }

  .print-section-title {
    font-size: 13pt;
    color: #0f172b;
    border-bottom: 1pt solid #e5e5e5;
    padding-bottom: 5pt;
    margin: 20pt 0 10pt;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10pt;
    margin-bottom: 16pt;
  }

  .print-table th {
    background: #f8fafc;
    padding: 6pt 8pt;
    text-align: left;
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #45556c;
    border-bottom: 1pt solid #e5e5e5;
  }

  .print-table td {
    padding: 6pt 8pt;
    border-bottom: 1pt solid #e5e5e5;
  }

  .print-issue {
    margin-bottom: 12pt;
    padding-bottom: 10pt;
    border-bottom: 0.5pt solid #e5e5e5;
    page-break-inside: avoid;
  }

  .print-issue-head {
    display: flex;
    align-items: center;
    gap: 8pt;
    margin-bottom: 4pt;
  }

  .print-issue-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18pt;
    height: 18pt;
    border-radius: 50%;
    background: #0f172b;
    color: #fff;
    font-size: 8pt;
    font-weight: 700;
    flex-shrink: 0;
  }

  .print-sev {
    padding: 2pt 6pt;
    border-radius: 3pt;
    font-size: 8pt;
    font-weight: 700;
  }

  .print-sev--bloquant  { background: #ffe2e2; color: #9f0712; }
  .print-sev--important { background: #fef3c6; color: #973c00; }
  .print-sev--recommande { background: #d0fae5; color: #006045; }

  .print-issue-desc {
    font-size: 10pt;
    color: #0f172b;
    margin: 0 0 4pt;
  }

  .print-code {
    font-family: monospace;
    font-size: 8.5pt;
    background: #f1f5f9;
    padding: 5pt 8pt;
    border-radius: 3pt;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 4pt 0;
  }

  .print-fix {
    font-size: 9.5pt;
    color: #006045;
    margin: 2pt 0 0;
  }

  .print-footer {
    margin-top: 28pt;
    padding-top: 8pt;
    border-top: 1pt solid #e5e5e5;
    font-size: 8.5pt;
    color: #45556c;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════ LANDING */

.landing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 48px;
}

/* Hero */
.landing-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 64px 0 56px;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 43, 0.12);
  border: 1px solid rgba(15, 23, 43, 0.25);
  color: var(--terra);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.landing-title {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: inherit; font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.05;
}

.landing-title em {
  color: var(--terra);
  font-style: italic;
}

.landing-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.landing-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-btn-primary {
  padding: 14px 22px;
  font-size: 14px;
  text-decoration: none;
}

.landing-btn-secondary {
  padding: 14px 22px;
  font-size: 14px;
}

/* Score démo visuelle */
.landing-hero-visual {
  flex-shrink: 0;
}

.landing-score-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.landing-score-ring {
  position: relative;
  width: 110px;
  height: 110px;
}

.landing-score-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: inherit; font-weight: 600; letter-spacing: -0.015em;
  font-size: 32px;
  color: var(--navy);
}

.landing-score-issues {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.landing-issue-chip {
  display: block;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.landing-issue-chip.err  { background: #ffe2e2; color: var(--err); }
.landing-issue-chip.warn { background: #fef3c6; color: var(--warn); }
.landing-issue-chip.ok   { background: #d0fae5; color: var(--ok); }

/* Section title commun */
.landing-section-title {
  margin: 0 0 32px;
  text-align: center;
  color: var(--navy);
  font-family: inherit; font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(24px, 3vw, 36px);
}

/* Étapes */
.landing-steps {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.landing-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.landing-step-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.landing-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 43, 0.1);
  color: var(--terra);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.landing-step-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
}

.landing-step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Fonctionnalités */
.landing-features {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.landing-feature-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.landing-feature-icon {
  display: block;
  font-size: 22px;
  color: var(--terra);
  margin-bottom: 10px;
}

.landing-feature-card h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.landing-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Cadre légal */
.landing-legal {
  padding: 28px 32px;
  background: rgba(15, 23, 43, 0.06);
  border: 1px solid rgba(15, 23, 43, 0.18);
  border-radius: 18px;
  margin-bottom: 40px;
}

.landing-legal-text {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

/* CTA final */
.landing-final-cta {
  display: flex;
  justify-content: center;
  padding-bottom: 16px;
}

/* Modal rapport exemple */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 43, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-box {
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(15, 23, 43, 0.2);
  padding: 36px;
  max-width: 580px;
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.modal-title {
  margin: 8px 0 20px;
  color: var(--navy);
  font-family: inherit; font-weight: 600; letter-spacing: -0.015em;
  font-size: 24px;
}

.modal-score-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.modal-score {
  font-family: inherit; font-weight: 600; letter-spacing: -0.015em;
  font-size: 42px;
  color: var(--navy);
}

.modal-score span {
  font-size: 18px;
  color: var(--muted);
}

.status-partial {
  background: #fef3c6;
  color: var(--warn);
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}

.modal-table th {
  text-align: left;
  padding: 8px 10px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.modal-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.modal-note {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.site-footer-sep {
  opacity: 0.4;
}

/* Responsive landing */
@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    padding: 40px 0 36px;
  }

  .landing-hero-visual {
    display: none;
  }

  .landing-steps-grid,
  .landing-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .landing {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ═══ Suite Lisible : navigation commune + page d'accueil ═══════════════ */
.header-brand a {
  color: inherit;
  text-decoration: none;
}

.header-brand a:focus-visible,
.suite-nav a:focus-visible,
.hub-cta:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

.suite-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.suite-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 43, 0.09);
  background: rgba(15, 23, 43, 0.06);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.suite-nav a:hover {
  background: rgba(15, 23, 43, 0.12);
}

.suite-nav a[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.suite-nav-num {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}

.hub {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 56px;
}

.hub-hero {
  max-width: 760px;
  padding: 64px 0 40px;
}

.hub-title {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: inherit; font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
}

.hub-title em {
  color: var(--terra);
  font-style: italic;
}

.hub-lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(229, 229, 229, 0.96);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hub-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hub-card-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 43, 0.12);
  border: 1px solid rgba(15, 23, 43, 0.25);
  color: var(--safe);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hub-card h2 {
  margin: 0;
  color: var(--navy);
  font-family: inherit; font-weight: 600; letter-spacing: -0.015em;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}

.hub-card-question {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.hub-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.hub-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hub-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terra);
}

.hub-card-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.hub-card-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.hub-cta {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.hub-order {
  margin-top: 36px;
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.hub-order h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 17px;
}

.hub-order ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.hub-order strong {
  color: var(--navy);
}

@media (max-width: 1000px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hub {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hub-hero {
    padding: 40px 0 28px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Thème « Plan » · Engine — appliqué aux trois pages d'outils.
   Les jetons --navy / --terra / --ok / --warn / --err (en tête de fichier) portent
   déjà la palette ; ce bloc règle formes, tailles de cibles et focus.
   Statuts : --ok / --warn / --err = teintes « deep » (texte lisible sur blanc et sur teinte) ;
   --ok-main / --warn-main / --bad-main (plan.css) = traits et formes.
   ═══════════════════════════════════════════════════════════════════════════ */

.panel,
.audit-source-card,
.landing-score-demo,
.landing-step-card,
.landing-feature-card,
.landing-legal,
.modal-box,
.reference-detail,
.report-card {
  backdrop-filter: none;
  border-radius: 16px;
}
.panel { background: var(--card); border-color: var(--border); }
.landing-legal { background: #f8fafc; border-color: var(--border); }
.landing-step-card, .landing-feature-card { background: var(--card); }

/* Boutons : cibles ≥ 44 px, encre pleine pour l'action principale */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border-radius: 12px; font-weight: 600;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: #fff; border: 1.5px solid var(--navy); }
.btn-primary:hover { background: #1d293d; border-color: #1d293d; }
.btn-secondary { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn-ghost:hover { background: #f1f5f9; }
.btn-small, .btn.small { min-height: 44px; padding: 8px 16px; font-size: 13px; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Champs : fond blanc, focus bien visible (anneau encre, pas seulement une lueur) */
.field input, .field textarea, .field select { min-height: 44px; background: #fff; border-radius: 12px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--navy); outline-offset: 2px; border-color: var(--navy); box-shadow: none;
}
.da-address { background: #fff; border-radius: 12px; }
.da-address:focus-within { outline: 3px solid var(--navy); outline-offset: 2px; border-color: var(--navy); box-shadow: none; }

/* Onglets, modes, accordéons, liens : cibles ≥ 44 px */
.tab, .mode { min-height: 44px; }
.da-accordion summary, .cn-passed summary { min-height: 44px; }
.cn-passed summary { display: flex; align-items: center; }
.reference-source-links a, .tool-links a { min-height: 44px; }
.reference-toggle { min-height: 44px; }
.btn-overflow-menu button { min-height: 44px; }
.btn-overflow summary { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.seq-select { min-height: 44px; }
.seq-delete-btn { width: 44px; height: 44px; }
.cn-linkbtn { min-height: 44px; display: inline-flex; align-items: center; }
.chip button { width: 32px; height: 32px; } /* contrôle interne à une pastille : 32 px (WCAG 2.5.8 : 24 px min.) */
.modal-close { width: 44px; height: 44px; }

/* Segments de la jauge : traits « main » (≥ 3:1 sur blanc) */
.seg.ok { background: var(--ok-main, #009966); }
.seg.warn { background: var(--warn-main, #e17100); }
.seg.bad { background: var(--bad-main, #e7000b); }

/* Titre d'accueil de l'outil d'accessibilité : plus d'italique décoratif */
.landing-title { font-weight: 600; letter-spacing: -0.025em; }
.landing-title em { font-style: normal; color: var(--navy); background: linear-gradient(transparent 68%, #e5e5e5 68%); }
.landing-badge { background: #f1f5f9; border-color: var(--border); color: var(--navy); }

/* Gravité des repères : forme en plus de la couleur (carré arrondi = bloquant, rond = avertissement, rond pointillé = à vérifier) */
.audit-pin[data-sev="bloquant"] { border-radius: 12px; }
.audit-legend-dot[data-sev="bloquant"] { border-radius: 4px; }
.audit-pin[data-sev="recommande"] { outline: 2px dashed #555; outline-offset: 2px; }
.audit-legend-dot[data-sev="recommande"] { outline: 2px dashed #555; outline-offset: 1px; }

/* Écrans d'ordinateur portable : aperçu et liste des problèmes l'un sous l'autre (sinon la liste est coupée) */
@media (max-width: 1440px) {
  .audit-layout { grid-template-columns: minmax(0, 1fr); }
  .audit-list-panel { max-width: none; }
}

/* Onglets de résultat : retour à la ligne plutôt qu'un onglet coupé sur mobile */
.tabs { flex-wrap: wrap; }
.tab { white-space: nowrap; }

/* Fenêtre « rapport exemple » : ne jamais dépasser de l'écran (la table imposait sa largeur) */
.modal-overlay { grid-template-columns: minmax(0, 1fr); justify-items: center; overflow-y: auto; }
.modal-box { min-width: 0; max-height: calc(100vh - 48px); overflow: auto; }
.modal-table-scroll { overflow-x: auto; }
.modal-table-scroll:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.modal-table { min-width: 420px; }
@media (max-width: 560px) {
  .modal-box { padding: 24px 18px; }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
