/* ===== SolidApps — Maturity Audit ===================================
   Identité : blanc, bleu profond, bleu-gris, vert lime (accent) ===== */
:root {
  --bg:          #ffffff;
  --ink:         #0f1b3d;   /* bleu profond */
  --ink-soft:    #5b6478;   /* bleu-gris */
  --line:        #e4e7ef;
  --accent:      #b6e600;   /* vert lime */
  --accent-deep: #0f1b3d;
  --raised:      #2e7d32;
  --limited:     #b3541e;
  --impact:      #475569;
  --radius:      14px;
  --maxw:        1120px;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.app-shell { display: flex; flex-direction: column; min-height: 100vh; }

/* Topbar -------------------------------------------------------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.brand-mark {
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(182,230,0,.18);
}
.brand-name { font-weight: 700; letter-spacing: -0.01em; }
.brand-sep, .brand-tool { color: var(--ink-soft); font-weight: 500; }

/* Content ------------------------------------------------------------- */
.content { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 48px 24px; }

/* Hero ---------------------------------------------------------------- */
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  font-weight: 600; color: var(--ink-soft); margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08;
  letter-spacing: -0.02em; margin: 0 0 18px; max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--accent-deep); border-bottom: 4px solid var(--accent); }
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 60ch; margin: 0 0 32px; }

/* Form ---------------------------------------------------------------- */
.audit-form { display: flex; gap: 12px; max-width: 640px; flex-wrap: wrap; }
.url-input {
  flex: 1; min-width: 260px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1rem; font-family: var(--font-body); color: var(--ink);
  transition: border-color .15s;
}
.url-input:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(15,27,61,.08); }
.run-btn {
  padding: 14px 24px; border: none; border-radius: var(--radius);
  background: var(--accent-deep); color: #fff; font-weight: 600;
  font-family: var(--font-display); font-size: .98rem; cursor: pointer;
  transition: transform .12s, background .15s;
}
.run-btn:hover:not(:disabled) { background: #16245a; transform: translateY(-1px); }
.run-btn:disabled { opacity: .5; cursor: not-allowed; }
.error { color: var(--limited); margin-top: 16px; font-weight: 500; }

/* Report -------------------------------------------------------------- */
.report { margin-top: 56px; }
.report-meta { font-size: .82rem; color: var(--ink-soft); margin: 0 0 14px; }
.report-meta a { color: var(--ink-soft); text-decoration: underline; }
.global {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfcfe, #fff);
}
.global-score {
  display: flex; align-items: baseline; gap: 4px; flex-shrink: 0;
  padding: 14px 24px; border-radius: var(--radius);
}
.score-num { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; line-height: 1; }
.score-den { font-size: 1.2rem; opacity: .7; }
.global-body { flex: 1; min-width: 260px; }
.global-level {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft); margin-bottom: 8px;
}
.synthesis { font-size: 1.05rem; color: var(--ink); margin: 0; }

/* Axes ---------------------------------------------------------------- */
.axes { margin-top: 28px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.axis-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: linear-gradient(180deg, #fdfefe, #fff);
  transition: box-shadow .15s, border-color .15s;
}
.axis-card:hover { box-shadow: 0 4px 18px rgba(15,27,61,.06); border-color: #d4d9e6; }
.axis-card.not-evaluated { background: #fbfbfc; opacity: .92; }
.axis-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.axis-head h3 { font-family: var(--font-display); font-size: 1.12rem; margin: 0; flex: 1; min-width: 0; overflow-wrap: break-word; }
.not-eval-badge { white-space: nowrap; background: #eef0f5; color: var(--ink-soft); }
.axis-score {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  padding: 2px 12px; border-radius: 999px; white-space: nowrap;
}
.axis-score small { font-size: .8rem; color: var(--ink-soft); font-weight: 500; }
/* bandes de maturité */
.band-0 { background: #fdecec; color: #c0392b; }
.band-3 { background: #fdf3e6; color: var(--limited); }
.band-5 { background: #f4f7e6; color: #6b7d1a; }
.band-7 { background: #eaf6ec; color: var(--raised); }
.band-9 { background: var(--accent); color: var(--accent-deep); }

.axis-instruction {
  color: var(--ink-soft); font-size: .9rem; margin: 12px 0 18px;
  padding: 8px 12px; background: #f7f9fc; border-radius: 8px; line-height: 1.5;
}
.axis-clarif {
  color: #495066; font-size: .82rem; margin: -8px 0 16px;
  padding: 8px 12px; background: #f4f7ff; border-left: 3px solid #c3d0ee;
  border-radius: 0 8px 8px 0; line-height: 1.5;
}
.block { margin-top: 14px; }
.block h4 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 6px; font-weight: 700;
}
.block.raised h4  { color: var(--raised); }
.block.limited h4 { color: var(--limited); }
.block.impact h4  { color: var(--impact); }
.block ul { margin: 0; padding-left: 18px; }
.block li { font-size: .94rem; margin-bottom: 4px; }
.block.raised  { border-left: 3px solid var(--raised);  padding-left: 12px; }
.block.limited { border-left: 3px solid var(--limited); padding-left: 12px; }
.block.impact  { border-left: 3px solid var(--line);    padding-left: 12px; }

/* Carte PV insécable (évite l'orphelinage des recommandations SEO en PDF) */
.pv-card { margin-top: 8px; }

/* Encart « ce qui manque pour mesurer cet axe » (axe à confiance faible) */
.axis-missing {
  margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: #f7f9fc; border: 1px dashed #c3ccdd;
}
.axis-missing h4 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 6px; font-weight: 700; color: var(--ink-soft);
}
.axis-missing-lede { font-size: .86rem; color: #495066; margin: 0 0 8px; line-height: 1.5; }
.axis-missing ul { margin: 0; padding-left: 18px; }
.axis-missing li { font-size: .9rem; margin-bottom: 4px; color: #3a4258; }

/* Signals ------------------------------------------------------------- */
.signals-detail {
  margin-top: 18px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.signals-detail summary {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; color: var(--ink-soft); cursor: pointer;
  user-select: none; list-style: none;
}
.signals-detail summary::before { content: "▶ "; font-size: .7rem; }
.signals-detail[open] summary::before { content: "▼ "; }
.signals-list { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.signal {
  display: grid; grid-template-columns: 18px 1fr;
  gap: 6px; align-items: start; font-size: .875rem;
}
.sig-icon { font-size: .85rem; font-weight: 700; padding-top: 1px; }
.sig-pos .sig-icon { color: var(--raised); }
.sig-neg .sig-icon { color: var(--limited); }
.sig-neu .sig-icon { color: var(--ink-soft); }
.sig-desc { color: var(--ink); }
.sig-ev {
  grid-column: 2; display: block; margin-top: 2px;
  font-size: .8rem; background: #f0f2f7; border-radius: 4px;
  padding: 2px 7px; color: var(--ink-soft); word-break: break-all;
}

/* Report header ------------------------------------------------------- */
.report-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 12px; margin-bottom: 6px;
}
.report-tier { font-size: .86rem; color: var(--ink-soft); margin: 0 0 4px; }

/* Mode toggle --------------------------------------------------------- */
.mode-toggle {
  display: flex; gap: 6px; align-items: center;
  background: var(--line); border-radius: 999px; padding: 4px;
  flex-shrink: 0;
}
.mode-btn {
  padding: 6px 16px; border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-size: .82rem; font-weight: 600;
  background: transparent; color: var(--ink-soft); transition: all .15s;
}
.mode-btn:hover { color: var(--ink); }
.mode-active {
  background: var(--bg); color: var(--ink);
  box-shadow: 0 1px 4px rgba(15,27,61,.12);
}

/* Actions du rapport (toggle + export) ------------------------------- */
.report-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.export-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border: 1px solid var(--accent-deep); border-radius: 999px;
  background: var(--accent-deep); color: #fff; cursor: pointer;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  transition: background .15s, transform .12s;
}
.export-btn:hover { background: #16245a; transform: translateY(-1px); }
.export-ico { font-size: 1rem; line-height: 1; }

/* Panneau de progression (stepper animé indéterminé) ----------------- */
.progress-panel {
  margin: 22px 0 0; max-width: 640px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfcfe, #fff);
}
.progress-bar {
  height: 6px; border-radius: 999px; background: var(--line);
  overflow: hidden; margin-bottom: 16px;
}
.progress-bar-fill {
  display: block; height: 100%; width: 40%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  animation: progress-slide 1.4s ease-in-out infinite;
}
@keyframes progress-slide {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(130%); }
  100% { transform: translateX(280%); }
}
.progress-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.progress-step { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.step-dot {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .74rem; font-weight: 700; font-family: var(--font-display);
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
}
.step-done .step-dot   { background: var(--accent); border-color: var(--accent); color: var(--accent-deep); }
.step-done .step-label { color: var(--ink); }
.step-active .step-dot {
  border-color: var(--accent-deep); color: var(--accent-deep);
  box-shadow: 0 0 0 4px rgba(15,27,61,.08); animation: step-pulse 1.2s ease-in-out infinite;
}
.step-active .step-label { color: var(--ink); font-weight: 600; }
.step-todo .step-label { color: var(--ink-soft); }
@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(15,27,61,.06); }
  50%      { box-shadow: 0 0 0 6px rgba(15,27,61,.12); }
}

/* Badge booléen coloré ----------------------------------------------- */
.bool-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; line-height: 1;
}
.bb-yes { background: #eaf6ec; color: var(--raised); }
.bb-no  { background: #fdecec; color: #c0392b; }

/* Bandeau de couverture & fiabilité ----------------------------------- */
.coverage-banner {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch;
  margin: 18px 0; padding: 14px 16px;
  background: #f6f8fe; border: 1px solid var(--line); border-radius: var(--radius);
}
.cov-item {
  display: flex; flex-direction: column; gap: 2px; min-width: 150px; flex: 1 1 150px;
  padding: 4px 12px 4px 0;
}
.cov-item + .cov-item { border-left: 1px solid var(--line); padding-left: 14px; }
.cov-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); font-weight: 700; }
.cov-value { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--accent-deep); }
.cov-note { flex: 1 1 100%; margin: 4px 0 0; font-size: .8rem; color: var(--ink-soft); line-height: 1.5; }

/* Weight table -------------------------------------------------------- */
.weight-section { margin: 20px 0; }
.weight-table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem;
}
.weight-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-soft); font-weight: 700;
  padding: 6px 10px; border-bottom: 2px solid var(--line);
}
.weight-table td {
  padding: 7px 10px; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.weight-table td:nth-child(2),
.weight-table td:nth-child(3) { text-align: right; white-space: nowrap; }
.weight-table th:nth-child(2),
.weight-table th:nth-child(3) { text-align: right; }
.wt-row-na td { color: var(--ink-soft); font-style: italic; }
.wt-na { color: var(--ink-soft) !important; }
.weight-note {
  font-size: .8rem; color: var(--ink-soft); margin: 8px 0 0;
  padding: 8px 12px; background: #f6f8fe; border-radius: 8px;
}

/* Quality warnings (mode interne) ------------------------------------- */
.quality-warnings {
  margin: 16px 0; padding: 14px 18px;
  border: 1px solid #f0b429; border-radius: var(--radius);
  background: #fffbee;
}
.quality-warnings h4 {
  margin: 0 0 8px; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .08em; color: #8a6500; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.quality-warnings ul { margin: 0; padding-left: 18px; }
.quality-warnings li { font-size: .88rem; margin-bottom: 4px; }
.internal-badge {
  background: #0f1b3d; color: #fff; font-size: .68rem;
  padding: 2px 8px; border-radius: 999px; font-style: normal;
  text-transform: none; letter-spacing: 0;
}

/* Contradiction block (mode Client) ----------------------------------- */
.contradiction-block {
  margin: 20px 0; padding: 18px 22px;
  border: 2px solid var(--limited); border-radius: var(--radius);
  background: #fff5f3;
}
.contradiction-block p { margin: 0; font-size: .95rem; color: var(--limited); }
.contradiction-block code {
  background: #ffe8e3; padding: 1px 6px; border-radius: 4px;
  font-size: .85em; color: var(--limited);
}

/* Axis meta (mode interne) -------------------------------------------- */
.axis-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.coverage-badge, .confidence-badge {
  font-size: .75rem; padding: 2px 10px; border-radius: 999px;
  font-weight: 600; white-space: nowrap;
}
.coverage-badge { background: #eef0f8; color: var(--ink-soft); }
.conf-high   { background: #eaf6ec; color: var(--raised); }
.conf-medium { background: #fdf3e6; color: var(--limited); }
.conf-low    { background: #f5f5f5; color: var(--ink-soft); }

/* Section title ------------------------------------------------------- */
.section-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--ink); margin: 32px 0 10px;
  padding-bottom: 6px; border-bottom: 2px solid var(--line);
}

/* Radar --------------------------------------------------------------- */
.radar-section {
  margin: 24px 0 16px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfcfe, #fff);
  page-break-inside: avoid;
}
.radar-svg {
  display: block; width: 100%; max-width: 650px; min-width: 420px; margin: 0 auto;
  height: auto;
}
.radar-note {
  text-align: center; font-size: .82rem; color: var(--ink-soft);
  font-style: italic; margin: 8px 0 0;
}

/* Priority chart ------------------------------------------------------ */
.priority-section {
  margin: 32px 0 20px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; page-break-inside: avoid;
}
.priority-desc {
  font-size: .88rem; color: var(--ink-soft); margin: 0 0 16px;
}
.priority-svg {
  display: block; width: 100%; max-width: 600px;
  height: auto;
}
.priority-legend {
  font-size: .78rem; color: var(--ink-soft); margin: 8px 0 0; font-style: italic;
}

/* Plan d'action opérationnel ----------------------------------------- */
.action-plan {
  margin: 24px 0 20px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.plan-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .88rem; }
.plan-table thead th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--line);
}
.plan-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.plan-lever { font-weight: 600; color: #1a2238; }
.plan-role { color: #495066; }
.plan-fill { color: #97a0b3; font-style: italic; }
.prio-p1 { background: var(--accent, #0f1b3d); color: #fff; }
.prio-p2 { background: #dfe4ee; color: #3a4258; }
.plan-pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; white-space: nowrap;
}
.imp-high { background: #fdecec; color: #c0392b; }
.imp-mid  { background: #fbf3e2; color: #8a6100; }
.imp-low  { background: #eef2fb; color: #3058a8; }
.eff-low  { background: #eaf6ec; color: #1f7a3a; }
.eff-mid  { background: #fbf3e2; color: #8a6100; }
.eff-high { background: #fdecec; color: #c0392b; }
.plan-note { font-size: .78rem; color: var(--ink-soft); margin: 10px 0 0; font-style: italic; }

/* Premium upsell ------------------------------------------------------ */
.premium-upsell {
  margin: 24px 0; padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: #fafbff; border-radius: 0 var(--radius) var(--radius) 0;
}
.premium-upsell p {
  margin: 0; font-size: .92rem; color: var(--ink-soft);
}

/* Cartes de niveau d'analyse (Maturité) ------------------------------- */
.mode-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 8px 0 12px; max-width: 1080px;
}
.mode-card {
  position: relative; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px 18px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-family: var(--font-body);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.mode-card:hover:not(:disabled) { border-color: #c3cbe0; }
.mode-card:disabled { opacity: .6; cursor: default; }
.mode-card-active {
  border-color: var(--accent-deep); background: #fafbff;
  box-shadow: 0 0 0 3px rgba(15,27,61,.06);
}
.mode-card-active::after {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 4px; border-radius: 0 4px 4px 0; background: var(--accent);
}
.mode-card-check {
  position: absolute; top: 16px; right: 18px; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: .8rem; font-weight: 700; color: #fff;
  background: var(--accent-deep); opacity: 0; transition: opacity .15s;
}
.mode-card-active .mode-card-check { opacity: 1; }
.mode-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.mode-card-tag { font-size: .82rem; font-weight: 600; color: var(--accent-deep); }
.mode-card-desc { font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }
.mode-card-points { list-style: none; margin: 8px 0 0; padding: 0; }
.mode-card-points li {
  position: relative; padding-left: 18px; font-size: .82rem;
  color: var(--ink-soft); margin-bottom: 5px; line-height: 1.4;
}
.mode-card-points li::before {
  content: "–"; position: absolute; left: 4px; color: var(--accent-deep); font-weight: 700;
}
.mode-cards-note { font-size: .82rem; color: var(--ink-soft); margin: 0 0 24px; max-width: 760px; }

/* Champs de lancement ------------------------------------------------- */
.field-block { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.field-help { font-size: .8rem; color: var(--ink-soft); margin: 2px 0 0; }
.field-hint { font-size: .82rem; color: var(--ink-soft); margin: 10px 0 0; font-style: italic; }
.audit-form:has(.field-block) { align-items: flex-start; }
.audit-form:has(.field-block) .run-btn { margin-top: 26px; }

/* Paramètres avancés (accordéon) -------------------------------------- */
.advanced { margin: 20px 0 0; max-width: 760px; border-top: 1px solid var(--line); padding-top: 14px; }
.advanced > summary {
  cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink);
  list-style: none; display: inline-flex; align-items: center; gap: 8px; user-select: none;
}
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary::before {
  content: "▸"; color: var(--ink-soft); transition: transform .15s; display: inline-block;
}
.advanced[open] > summary::before { transform: rotate(90deg); }
.advanced-body { padding: 16px 2px 4px; }
.advanced-intro { font-size: .86rem; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.5; }
.advanced-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adv-field { display: flex; flex-direction: column; gap: 4px; }
.adv-field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.adv-field input[type="number"] {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: .9rem; font-family: var(--font-body); color: var(--ink); max-width: 160px;
}
.adv-field input:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(15,27,61,.08); }
.adv-check label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.adv-check input { accent-color: var(--accent-deep); }
.adv-help { font-size: .76rem; color: var(--ink-soft); }
.advanced-perimeter { margin: 0; padding-left: 20px; }
.advanced-perimeter li { font-size: .84rem; color: var(--ink-soft); margin-bottom: 5px; }

/* Écran Sécurité — panneau surface + réassurance ---------------------- */
.security-launch { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.surface-panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fafbff; padding: 22px 20px; position: sticky; top: 24px;
}
.surface-panel-title {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 700; color: var(--ink-soft); margin: 0 0 14px;
}
.surface-list { list-style: none; margin: 0; padding: 0; }
.surface-list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.surface-list li:last-child { border-bottom: none; }
.surface-ico { color: var(--accent-deep); font-size: .8rem; }
.surface-panel-foot { font-size: .76rem; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.45; }
.reassurance {
  display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none;
  margin: 20px 0 0; padding: 14px 18px; border-radius: var(--radius);
  background: #f6faf0; border: 1px solid #e2eecb;
}
.reassurance li { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--ink); }
.reassurance-ico {
  width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #5f8228; color: #fff; font-size: .7rem;
}

/* Contexte d'exécution ------------------------------------------------ */
.exec-context { margin-bottom: 16px; }
.exec-context-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0 0 10px; }
.exec-context-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.exec-context-meta > div { display: flex; gap: 8px; align-items: baseline; }
.exec-context-meta dt {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-soft); font-weight: 700; margin: 0;
}
.exec-context-meta dd { margin: 0; font-size: .88rem; color: var(--ink); font-weight: 600; }

/* Derniers audits (historique) ---------------------------------------- */
.history { margin: 40px 0 0; max-width: 900px; }
.history-title { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 14px; }
.history-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.history-table th, .history-table td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line);
}
.history-table th {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft); font-weight: 700;
}
.history-target { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-den { color: var(--ink-soft); font-size: .8rem; }
.history-actions { display: flex; gap: 12px; white-space: nowrap; }
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent-deep); font-weight: 600; font-size: .84rem;
  font-family: var(--font-body); text-decoration: underline; text-underline-offset: 2px;
}
.link-btn:hover { color: #16245a; }

/* Sections Phase 2 ---------------------------------------------------- */
.ph2-section { margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ph2-subtitle { margin: 22px 0 10px; font-size: .95rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 14px; }
.ph2-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.ph2-stat { flex: 1 1 90px; text-align: center; padding: 12px 8px; background: #f7f9fc; border-radius: var(--radius); }
.ph2-num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.ph2-lbl { display: block; font-size: .74rem; color: var(--ink-soft); margin-top: 2px; }
.ph2-table {
  width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 10px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.ph2-table th, .ph2-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.ph2-table th {
  background: #f7f9fc; color: var(--ink-soft); font-weight: 700;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
}
.ph2-table tbody tr:last-child td { border-bottom: none; }
.ph2-table tbody tr:nth-child(even) { background: #fbfcfe; }
.ph2-url { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph2-findings { list-style: none; padding: 0; margin: 0; }
.ph2-finding { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 6px; border-radius: var(--radius); background: #f7f9fc; font-size: .85rem; }
.ph2-finding code { font-size: .76rem; color: var(--ink-soft); }
.sev-tag { font-size: .68rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.sev-high { border-left: 3px solid #d64545; } .sev-high .sev-tag { background: #fbe4e4; color: #d64545; }
.sev-medium { border-left: 3px solid #d08a1d; } .sev-medium .sev-tag { background: #fbf0dc; color: #d08a1d; }
.sev-low { border-left: 3px solid #5b92e8; } .sev-low .sev-tag { background: #e5eefb; color: #3058a8; }
.sev-info { border-left: 3px solid #7aa53f; } .sev-info .sev-tag { background: #eef5e0; color: #5f8228; }
.ph2-nm { font-size: .85rem; color: var(--ink-soft); font-style: italic; margin: 6px 0; }
.ph2-competitors, .ph2-rep { font-size: .85rem; color: var(--ink); margin: 10px 0 0; }
.ph2-degraded { margin-top: 20px; padding: 12px 16px; border-left: 3px solid #d08a1d; background: #fffdf7; border-radius: 0 var(--radius) var(--radius) 0; font-size: .84rem; }
.ph2-degraded ul { margin: 6px 0 0; padding-left: 20px; color: var(--ink-soft); }

/* Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 20px 24px; color: var(--ink-soft); font-size: .85rem; text-align: center; }

/* Couverture client --------------------------------------------------- */
.client-cover {
  padding: 40px 40px 34px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink) 0%, #16245a 100%); color: #fff;
  page-break-inside: avoid;
}
.cover-eyebrow {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent); font-weight: 700; margin: 0 0 18px;
}
.cover-title {
  font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1;
  margin: 0 0 8px; color: #fff;
}
.cover-domain { font-size: 1.15rem; font-weight: 600; margin: 0 0 4px; color: #fff; }
.cover-date { font-size: .84rem; color: #cdd6e8; margin: 0 0 28px; }
.cover-verdict {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px;
}
.cover-score {
  display: flex; align-items: baseline; gap: 6px; padding: 14px 26px;
  border-radius: var(--radius); flex-shrink: 0;
}
.cover-score-num { font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; line-height: 1; }
.cover-score-den { font-size: 1.1rem; font-weight: 600; }
.cover-level { flex: 1; min-width: 260px; }
.cover-level-tag {
  display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); margin-bottom: 8px;
}
.cover-level-desc { font-size: 1rem; line-height: 1.55; color: #e6eaf3; margin: 0; }
/* Plafonds de score sur la page de garde (livrable / PDF). */
.cover-caps { list-style: none; margin: 20px 0 0; padding: 0; }
.cover-caps li {
  font-size: .82rem; color: #ffdad4; background: rgba(214,69,69,.16);
  border-left: 3px solid #e5736f; border-radius: 4px;
  padding: 6px 12px; margin-top: 6px;
}

/* Synthèse exécutive -------------------------------------------------- */
.exec-summary {
  margin: 24px 0; padding: 26px 28px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; page-break-inside: avoid;
}
.exec-title {
  font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 12px; color: var(--ink);
}
.exec-lede { font-size: 1.02rem; line-height: 1.6; color: var(--ink); margin: 0 0 22px; }
.exec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.exec-col h3 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 10px; font-weight: 700;
}
.exec-strengths h3 { color: var(--raised); }
.exec-priorities h3 { color: var(--impact); }
.exec-col ul { margin: 0; padding-left: 18px; }
.exec-col li { font-size: .94rem; margin-bottom: 6px; color: var(--ink); }
.exec-note { color: var(--ink-soft); font-size: .84rem; }
.exec-empty { font-size: .9rem; color: var(--ink-soft); font-style: italic; margin: 0; }

/* Légende des bandes de maturité -------------------------------------- */
.band-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin: 16px 0 4px; font-size: .78rem; color: var(--ink-soft);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* Accessibilité : focus clavier visible ------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px; border-radius: 6px;
}
.export-btn:focus-visible, .run-btn:focus-visible { outline-offset: 3px; }
.client-cover :focus-visible, .cover-verdict :focus-visible { outline-color: var(--accent); }

/* Responsive : tablette ----------------------------------------------- */
@media (max-width: 860px) {
  .axes { grid-template-columns: 1fr; }
  .report-header { flex-direction: column; }
  .report-actions { width: 100%; justify-content: space-between; }
  .global { gap: 18px; }
  .cover-verdict { gap: 18px; }
  .ph2-stat { flex: 1 1 120px; }
  .security-launch { grid-template-columns: 1fr; gap: 24px; }
  .surface-panel { position: static; }
}
/* Responsive : mobile ------------------------------------------------- */
@media (max-width: 520px) {
  .content { padding: 32px 18px; }
  .exec-cols { grid-template-columns: 1fr; }
  .cover-title { font-size: 1.9rem; }
  .cover-score { padding: 12px 18px; }
  .cover-score-num { font-size: 2.8rem; }
  .run-btn { width: 100%; }
  .audit-form .run-btn { margin-top: 8px; }
  .mode-cards { grid-template-columns: 1fr; }
  .advanced-grid { grid-template-columns: 1fr; }
  .report-actions { flex-direction: column; align-items: stretch; }
  .mode-toggle { justify-content: center; }
  .export-btn { justify-content: center; }
  .progress-panel { padding: 16px; }
  .history-table thead { display: none; }
  .history-table, .history-table tbody, .history-table tr, .history-table td { display: block; width: 100%; }
  .history-table tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 8px 4px; }
  .history-table td { border: none; padding: 4px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Impression / export PDF client -------------------------------------- */
@media print {
  .hero, .mode-toggle, .mode-cards, .mode-cards-note, .audit-form, .field-hint,
  .advanced, .reassurance, .surface-panel, .history, .footer,
  .topbar, .report-header { display: none !important; }
  .report { margin-top: 0; }
  .content { padding: 0; }
  body { background: #fff; }
  .axis-card, .radar-section, .priority-section, .exec-summary,
  .client-cover, .weight-section { page-break-inside: avoid; }
  /* La section Phase 2 peut être longue. On NE force PAS les longues listes
     (.ph2-findings, .ph2-table) à rester insécables : un bloc plus haut qu'une
     page basculerait en entier sur la page suivante et laisserait une page quasi
     blanche. On protège seulement les petits blocs atomiques et, dans les listes,
     chaque élément individuellement (il ne doit pas se couper en deux). */
  .ph2-stats, .ph2-degraded, .coverage-banner,
  .dup-group, .action-plan, .pv-delta, .pv-card, .axis-missing { page-break-inside: avoid; }
  .ph2-finding, .dup-urls li, .ph2-table tr, .ctrl-row { page-break-inside: avoid; }
  .ph2-subtitle, .section-title { page-break-after: avoid; }
  ul, ol, li { orphans: 2; widows: 2; }
  .client-cover { page-break-after: always; }
  .axes { grid-template-columns: 1fr 1fr; }
  a { color: inherit; text-decoration: none; }
  .topnav, .disclaimer { display: none !important; }
  /* Le disclaimer de sécurité est une mention légale : il doit figurer dans le PDF,
     mais ne doit PAS occuper une page à lui seul. On le colle au contenu précédent
     (break-before: avoid) et on le rend compact pour qu'il tienne en pied de la
     dernière page de contenu. */
  .disclaimer.print-keep {
    display: block !important; margin-top: 14px; page-break-inside: avoid;
    break-before: avoid-page; page-break-before: avoid;
    font-size: .72rem; padding: 10px 14px;
  }
  /* Forcer l'impression des aplats de couleur (bandes de score, page de garde). */
  .client-cover, .global-score, .cover-score, .ctrl-status, .ctrl-row,
  .bool-badge, .axis-score, .cap-item, .disclaimer.print-keep {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* ── Module Sécurité — navigation & rapport ─────────────────────────── */
.topnav { display: flex; gap: 6px; margin-left: auto; }
.topnav-link {
  padding: 7px 14px; border-radius: 8px; font-size: .9rem; font-weight: 600;
  color: #cdd6e8; text-decoration: none; transition: background .15s, color .15s;
}
.topnav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.topnav-link.active { background: var(--lime, #b6e600); color: #0f1b3d; }
.topnav-note { font-size: .82rem; color: #9aa6c0; font-weight: 500; }

.cap-list { list-style: none; margin: 10px 0 0; padding: 0; }
.cap-item {
  font-size: .82rem; color: #7a1f1f; background: #fdecec;
  border-left: 3px solid #d64545; border-radius: 4px;
  padding: 5px 10px; margin-top: 5px;
}

.cat-warn { color: #8a6100; font-size: .82rem; margin-left: 6px; }
.cat-manual { color: #3058a8; font-size: .82rem; margin-left: 6px; }

/* État sécurité — pastilles lisibles, jamais chevauchées ---------------- */
.weight-table td.status-cell {
  white-space: normal;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end;
}
.status-pill {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 2px 9px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; line-height: 1.5;
}
.sp-ok     { background: #eaf6ec; color: var(--raised); }
.sp-fail   { background: #fdecec; color: #c0392b; }
.sp-warn   { background: #fbf3e2; color: #8a6100; }
.sp-manual { background: #eef2fb; color: #3058a8; }

.ctrl-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ctrl-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; border-radius: 8px; background: #f7f8fb;
  border-left: 4px solid #c8cfdd;
}
.ctrl-ok   { border-left-color: #3fae5a; }
.ctrl-warn { border-left-color: #e0a417; }
.ctrl-fail { border-left-color: #d64545; }
.ctrl-manual { border-left-color: #3058a8; }
.ctrl-na, .ctrl-undet { border-left-color: #b6bccb; opacity: .8; }
.ctrl-status {
  flex: 0 0 auto; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; padding: 3px 8px; border-radius: 5px;
  background: #eef0f5; color: #495066; white-space: nowrap;
}
.ctrl-ok   .ctrl-status { background: #e4f5e9; color: #1f7a3a; }
.ctrl-warn .ctrl-status { background: #fdf3dd; color: #8a6100; }
.ctrl-fail .ctrl-status { background: #fdecec; color: #a52323; }
.ctrl-manual .ctrl-status { background: #e8eefb; color: #23478a; }
.ctrl-body { display: flex; flex-direction: column; gap: 3px; }
.ctrl-title { font-weight: 600; color: #1a2238; font-size: .92rem; }
.ctrl-reco { font-size: .85rem; color: #495066; }
.ctrl-evidence {
  list-style: none; margin: 4px 0 0; padding: 0;
  font-family: ui-monospace, "Cascadia Code", monospace; font-size: .76rem; color: #5b6478;
}
.ctrl-evidence li { padding: 1px 0; word-break: break-word; }

/* Public Visibility — cadrage « au-delà du Snapshot » */
.pv-delta {
  margin: 4px 0 18px; padding: 12px 16px; border-radius: 10px;
  background: #f4f7ff; border-left: 4px solid var(--accent, #0f1b3d);
  font-size: .9rem; color: #3a4258; line-height: 1.55;
}

/* Preuve URL par URL : titres dupliqués */
.dup-evidence {
  margin: 14px 0 6px; padding: 14px 16px; border-radius: 10px;
  background: #fbf6ee; border: 1px solid #eadfca;
}
.dup-heading {
  margin: 0 0 10px; font-size: .95rem; font-weight: 700; color: #7a5b12;
}
.dup-group { margin-bottom: 12px; }
.dup-title { margin: 0 0 4px; font-weight: 600; color: #1a2238; font-size: .9rem; }
.dup-urls {
  list-style: none; margin: 0; padding: 0 0 0 12px;
  border-left: 2px solid #eadfca;
  font-family: ui-monospace, "Cascadia Code", monospace; font-size: .78rem; color: #5b6478;
}
.dup-urls li { padding: 2px 0; word-break: break-all; }
.dup-reco { margin: 8px 0 0; font-size: .84rem; color: #495066; font-style: italic; }

.disclaimer {
  margin-top: 26px; padding: 14px 18px; border-radius: 10px;
  background: #f0f2f7; border: 1px solid #dce1ea;
  font-size: .82rem; color: #5b6478; font-style: italic;
}

/* Gating par niveau d'accès (MISSION §4) ------------------------------ */

/* Sélecteur de niveau — développement uniquement */
.access-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px; border: 1px dashed #c3cbe0; border-radius: 999px;
  background: #fafbff;
}
.access-switch-lbl {
  font-size: .72rem; font-weight: 600; color: var(--ink-soft);
  padding: 0 4px;
}
.access-btn {
  padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-soft); font-size: .78rem; font-weight: 600;
  font-family: var(--font-body); cursor: pointer; transition: all .15s;
}
.access-btn:hover { border-color: #c3cbe0; }
.access-active {
  background: var(--accent-deep); border-color: var(--accent-deep); color: #fff;
}

/* Contenu flouté (teaser) : aperçu sans valeur exploitable */
.blurred {
  filter: blur(6px); user-select: none; pointer-events: none;
}

/* Cover verrouillée (score masqué) */
.cover-teaser .cover-score-locked {
  color: var(--ink-soft); opacity: .6; letter-spacing: 2px;
}

/* Bannière couverture — variante Light (indicatif) */
.coverage-banner-light { opacity: .92; }

/* Tableau des poids — variante Light (axes prioritaires seulement) */
.weight-section-light .priority-axes-light,
.priority-section-light .priority-axes-light {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.priority-axes-light li {
  padding: 10px 14px; border-left: 3px solid var(--accent);
  background: #fafbff; border-radius: 0 8px 8px 0;
  font-size: .9rem; color: var(--ink);
}

/* Tableau des poids — teaser anonyme (squelette flouté) */
.weight-section-teaser { position: relative; }

/* Axes — variante Light (phrases génériques, pas de détail technique) */
.axes-light {
  display: flex; flex-direction: column; gap: 10px; margin: 14px 0;
}
.axes-light p {
  margin: 0; padding: 12px 16px; border-left: 3px solid var(--line);
  background: #fafbff; border-radius: 0 8px 8px 0;
  font-size: .92rem; color: var(--ink-soft);
}

/* Section radar / ph2 — teaser */
.radar-teaser, .ph2-teaser { position: relative; }

/* CTA upsell (création de compte / passage Premium) */
.upsell-title {
  margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--ink);
}
.upsell-cta { margin-top: 12px; }

/* ===== Navigation authentifiée ===================================== */
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav-link {
  color: var(--ink-soft); text-decoration: none; font-size: .92rem;
  font-weight: 500; transition: color .15s;
}
.topnav-link:hover { color: var(--ink); }
.topnav-cta {
  padding: 8px 16px; border-radius: 10px; background: var(--accent-deep);
  color: #fff; font-family: var(--font-display);
}
.topnav-cta:hover { color: #fff; background: #16245a; }
.topnav-logout { margin: 0; }
.topnav-linkbtn { border: none; background: none; cursor: pointer; font-family: var(--font-body); }

/* ===== Cartes d'authentification =================================== */
.auth-card {
  max-width: 440px; margin: 8px auto; padding: 36px 32px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfcfe, #fff);
}
.auth-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: 1.6rem; margin: 0 0 8px;
}
.auth-lede { color: var(--ink-soft); margin: 0 0 24px; font-size: .96rem; }
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.auth-field > span { font-size: .86rem; font-weight: 600; color: var(--ink); }
.auth-input {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: var(--font-body); color: var(--ink);
  transition: border-color .15s;
}
.auth-input:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(15,27,61,.08); }
.auth-check { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .9rem; color: var(--ink-soft); }
.auth-msg { color: var(--limited); font-size: .82rem; }
.auth-btn {
  width: 100%; padding: 13px 20px; border: none; border-radius: 10px;
  background: var(--accent-deep); color: #fff; font-weight: 600;
  font-family: var(--font-display); font-size: 1rem; cursor: pointer;
  transition: transform .12s, background .15s;
}
.auth-btn:hover { background: #16245a; transform: translateY(-1px); }
.auth-btn-ghost {
  display: inline-block; padding: 11px 18px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600;
  font-family: var(--font-display); font-size: .92rem; cursor: pointer;
  text-decoration: none; transition: border-color .15s;
}
.auth-btn-ghost:hover { border-color: var(--accent-deep); }
.auth-alt { margin: 16px 0 0; font-size: .9rem; color: var(--ink-soft); }
.auth-alt a { color: var(--accent-deep); font-weight: 600; }
.auth-errors { margin: 0 0 18px; padding: 12px 16px 12px 32px; border-radius: 10px; background: #fdf1ec; color: var(--limited); }
.auth-errors-inline { margin: 0 0 18px; color: var(--limited); font-weight: 500; }
.auth-note { color: var(--ink-soft); }

/* ===== Espace client =============================================== */
.dash { max-width: var(--maxw); }
.dash-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.dash-hello { color: var(--ink-soft); margin: 0 0 4px; }
.dash-badge {
  display: inline-block; margin: 0 0 24px; padding: 6px 12px; border-radius: 10px;
  background: rgba(182,230,0,.18); color: var(--accent-deep); font-weight: 600; font-size: .84rem;
}
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 24px 0; }
.dash-card {
  display: block; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, transform .12s;
}
.dash-card:hover { border-color: var(--accent-deep); transform: translateY(-2px); }
.dash-card h2 { margin: 0 0 8px; font-size: 1.05rem; font-family: var(--font-display); }
.dash-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.dash-note { color: var(--ink-soft); font-size: .9rem; }

/* ===== Profil ====================================================== */
.profile-list { display: flex; flex-direction: column; gap: 14px; margin: 0 0 24px; }
.profile-list > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.profile-list dt { color: var(--ink-soft); font-size: .88rem; margin: 0; }
.profile-list dd { margin: 0; font-weight: 600; }
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.profile-actions form { margin: 0; }

/* ── Phase 2/3 : audit Light, quotas et paiement Premium ─────────────── */
.consent-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.consent-check input { margin-top: 3px; flex: 0 0 auto; }

.quota-block, .dash-card-muted { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #f7f8fb; }
.quota-title { margin: 0 0 8px; font-family: var(--font-display); }
.dash-card-muted h2 { margin: 0 0 6px; font-family: var(--font-display); }
.dash-card-muted p { margin: 0; color: var(--ink-soft); }

.legal-note { font-size: .88rem; color: var(--ink-soft); background: #f7f8fb; border-left: 3px solid var(--accent); padding: 12px 14px; border-radius: 8px; margin: 14px 0; }

.upgrade-price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0; }
.upgrade-amount { font-size: 2rem; font-weight: 800; font-family: var(--font-display); color: var(--ink); }
.upgrade-once { color: var(--ink-soft); font-size: .9rem; }

/* Pricing ------------------------------------------------------------- */
.pricing { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 64px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 28px 0; }
.pricing-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pricing-card-highlight { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(182,230,0,.15); }
.pricing-name { margin: 0; font-family: var(--font-display); }
.pricing-price { font-size: 1.8rem; font-weight: 800; font-family: var(--font-display); margin: 0; }
.pricing-points { margin: 0; padding-left: 18px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }
.pricing-points li { line-height: 1.4; }
.pricing-note { font-size: .82rem; color: var(--ink-soft); margin: 4px 0 0; }
.pricing-card .auth-btn, .pricing-card .auth-btn-ghost { margin-top: auto; text-align: center; }

/* ── Phase 4 : vérification de propriété du domaine ──────────────────── */
.verify-methods { display: flex; gap: 8px; margin: 16px 0; }
.verify-tab { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 16px; cursor: pointer; font: inherit; color: var(--ink-soft); }
.verify-tab-active { border-color: var(--accent); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 2px rgba(182,230,0,.18); }
.verify-steps { margin: 12px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.verify-token, .verify-url { display: inline-block; margin-top: 4px; background: #0f1b3d; color: #dbe4ff; padding: 6px 10px; border-radius: 8px; font-size: .82rem; word-break: break-all; }
.verify-ok { color: var(--raised); font-weight: 600; background: #eef7ee; border-left: 3px solid var(--raised); padding: 12px 14px; border-radius: 8px; }

/* ── Phase 6 : administration & RGPD ─────────────────────────────────── */
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.admin-nav-link { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .9rem; text-decoration: none; }
.admin-nav-active { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.admin-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .8rem; color: var(--ink-soft); }
.auth-btn-danger, .auth-link-danger { color: #b3261e; border-color: #f0c9c5; }
.auth-btn-danger { background: #fff; }
.delete-form { display: flex; flex-direction: column; gap: 14px; margin: 12px 0; }

/* ── Home marketing (refonte page d'accueil, MISSION §2/§6) ──────────── */
body { overflow-x: hidden; }

/* Full-bleed alternating section backgrounds : le fond dépasse le conteneur
   centré (.content, max-width var(--maxw)) via un ::before position:absolute
   qui s'étend sur 100vw, tandis que le contenu reste centré et lisible. */
.home-section { position: relative; padding: 76px 0; }
.home-tint::before, .home-dark::before {
  content: ""; position: absolute; z-index: -1;
  top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
}
.home-tint::before { background: #f5f7fc; }
.home-dark::before { background: linear-gradient(155deg, #0f1b3d 0%, #16245a 55%, #0c1730 100%); }
.home-dark { color: #fff; }
.home-dark .lede, .home-dark p, .home-dark .home-disclaimer { color: rgba(255,255,255,.72); }
.home-dark h2, .home-dark h3 { color: #fff; }

.home-kicker {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(182,230,0,.16); color: var(--accent-deep);
  font-family: var(--font-display); font-weight: 700; font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px;
}
.home-dark .home-kicker { background: rgba(182,230,0,.22); color: var(--accent); }

.home-section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.home-section-head h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin: 0 0 16px; position: relative;
}
.home-section-head .lede { margin: 0 auto; }

/* Hero ------------------------------------------------------------------ */
.home-hero { position: relative; padding: 40px 0 64px; overflow: visible; }
.home-hero::before {
  content: ""; position: absolute; z-index: -1; top: -60px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(182,230,0,.28), rgba(182,230,0,0) 70%);
}
.home-hero-inner { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.home-hero-text { flex: 1 1 420px; min-width: 0; }
.home-hero-text h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08;
  letter-spacing: -0.02em; margin: 0 0 20px; max-width: 20ch;
}
.home-hero-text h1 em { font-style: normal; color: var(--accent-deep); border-bottom: 5px solid var(--accent); }
.home-hero-reassurance {
  color: var(--ink-soft); font-size: .86rem; margin-top: 14px; font-weight: 600;
}
.home-hero-mockup { flex: 0 1 340px; }
.mockup-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  background: #fff; box-shadow: 0 24px 60px rgba(15,27,61,.14); text-align: center;
  animation: home-float 5s ease-in-out infinite;
}
.mockup-score { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; color: var(--accent-deep); }
.mockup-score span { font-size: 1.1rem; color: var(--ink-soft); font-weight: 500; }
.mockup-badge {
  display: inline-block; margin: 10px 0 18px; padding: 5px 14px; border-radius: 999px;
  background: var(--accent); color: var(--accent-deep); font-weight: 700; font-size: .82rem;
}
.mockup-radar { display: flex; justify-content: center; margin-bottom: 16px; }
.mockup-alert {
  background: #fdf3e6; color: var(--limited); font-size: .82rem; font-weight: 700;
  border-radius: 8px; padding: 9px 12px; margin-bottom: 16px;
}
.mockup-lines { display: flex; flex-direction: column; gap: 8px; }
.mockup-lines span { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.mockup-lines span:nth-child(2) { width: 80%; }
.mockup-lines span:nth-child(3) { width: 60%; }

/* Cartes / grilles -------------------------------------------------------- */
.home-card-grid { display: grid; gap: 22px; margin: 0 auto; max-width: var(--maxw); }
.home-card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.home-card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.home-simple-card, .home-axis-card, .home-step-card, .home-contrast-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: #fff; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-simple-card:hover, .home-axis-card:hover, .home-step-card:hover, .home-contrast-card:hover {
  transform: translateY(-6px); box-shadow: 0 18px 36px rgba(15,27,61,.1); border-color: var(--accent);
}
.home-dark .home-simple-card, .home-dark .home-contrast-card {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16);
}
.home-dark .home-simple-card:hover, .home-dark .home-contrast-card:hover { border-color: var(--accent); }
.home-dark .home-simple-card p, .home-dark .home-contrast-card p { color: rgba(255,255,255,.72); }
.home-simple-card h3, .home-axis-card h3, .home-step-card h3, .home-contrast-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0 0 8px;
}
.home-simple-card p, .home-axis-card p, .home-step-card p, .home-contrast-card p {
  color: var(--ink-soft); margin: 0;
}
.home-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; font-size: 1.4rem; margin-bottom: 14px;
  background: rgba(182,230,0,.18);
}

.home-axis-card { text-align: left; }
.home-axis-weight {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--accent-deep); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin-bottom: 12px;
}
.home-step-card { text-align: center; }
.home-step-index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; background: var(--accent);
  color: var(--accent-deep); font-family: var(--font-display); font-weight: 800; margin-bottom: 12px;
}

.home-contrast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0 auto; max-width: var(--maxw); }

.home-report-features {
  list-style: none; margin: 0 auto; padding: 0; max-width: 480px;
  display: flex; flex-direction: column; gap: 12px;
}
.home-report-features li {
  color: var(--ink); font-weight: 600; text-align: left; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.home-report-features li::before { content: "✓"; color: var(--accent-deep); font-weight: 800; }

.home-badge-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 20px; max-width: 720px; }
.home-badge {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: #f2f4fa; color: var(--ink); font-size: .82rem; font-weight: 700;
}
.home-dark .home-badge { background: rgba(255,255,255,.1); color: #fff; }
.home-disclaimer { color: var(--ink-soft); font-size: .84rem; font-style: italic; text-align: center; }

.home-offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin: 0 auto 28px; max-width: var(--maxw); align-items: stretch; }
.home-offer-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 12px; background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-offer-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(15,27,61,.1); }
.home-offer-premium {
  border-color: var(--accent-deep); background: var(--accent-deep); color: #fff;
  box-shadow: 0 20px 44px rgba(15,27,61,.22); position: relative;
}
.home-offer-premium::before {
  content: "Le plus complet"; position: absolute; top: -12px; right: 20px;
  background: var(--accent); color: var(--accent-deep); font-weight: 800; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .05em; padding: 5px 12px; border-radius: 999px;
}
.home-offer-premium h3 { color: #fff; }
.home-offer-premium ul, .home-offer-premium .home-offer-audience, .home-offer-premium .home-offer-note {
  color: rgba(255,255,255,.78);
}
.home-offer-premium .run-btn { background: var(--accent); color: var(--accent-deep); }
.home-offer-audience { color: var(--ink-soft); font-size: .85rem; margin: 0; font-weight: 600; }
.home-offer-card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }
.home-offer-price { font-size: 1.35rem; font-weight: 800; font-family: var(--font-display); margin: 4px 0; }
.home-offer-note { font-size: .8rem; color: var(--ink-soft); margin-top: 4px; }

.home-faq { max-width: 760px; margin: 0 auto; }
.home-faq details {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px;
  transition: border-color .15s;
}
.home-faq details[open] { border-color: var(--accent-deep); }
.home-faq summary {
  cursor: pointer; font-weight: 700; font-family: var(--font-display); color: var(--ink);
  list-style: none;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::before { content: "＋"; color: var(--accent-deep); font-weight: 800; margin-right: 10px; }
.home-faq details[open] summary::before { content: "－"; }
.home-faq p { margin: 12px 0 0; color: var(--ink-soft); }

.home-final-cta { text-align: center; }
.home-final-cta h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.home-final-cta-sub { max-width: 560px; margin: 0 auto 28px; }
.home-final-cta-actions { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
.home-final-cta .run-btn {
  display: inline-block; text-decoration: none;
  background: var(--accent); color: var(--accent-deep);
}
.home-final-cta-secondary { color: rgba(255,255,255,.82); text-decoration: underline; font-weight: 500; }
.home-final-cta-secondary:hover { color: #fff; }

.home-legal { max-width: 720px; }
.home-legal h1 { font-family: var(--font-display); margin-bottom: 16px; }

.footer { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: .85rem; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* Animations : entrée douce au chargement + apparition au scroll ---------- */
@keyframes home-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes home-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.home-hero-text, .home-hero-mockup { animation: home-fade-up .7s ease-out both; }
.home-hero-mockup { animation-delay: .12s; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Page de transition /audit/processing */
.processing { max-width: 640px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.processing-steps {
  list-style: none; margin: 32px auto 0; padding: 0; max-width: 420px;
  display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.processing-steps li {
  padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line);
  color: var(--ink-soft);
}
.processing-steps li.active { border-color: var(--accent-deep); color: var(--ink); font-weight: 600; }
.processing-steps li.done { color: var(--accent-deep); }
.processing-hint { margin-top: 20px; color: var(--ink-soft); font-style: italic; }
.processing-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.processing-cta-secondary { background: #fff; color: var(--accent-deep); border: 1px solid var(--accent-deep); }

.preview { max-width: 640px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.preview-level { font-size: 1.1rem; margin: 8px 0; }
.preview-synthesis { color: var(--ink-soft); max-width: 560px; margin: 16px auto; }
.preview-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 860px) {
  .home-hero { flex-direction: column; }
  .home-hero-mockup { order: -1; max-width: 320px; margin: 0 auto; }
}
