/* ── Kimoun IMN — composants ──────────────────────────────────────────── */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--rule-soft);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px; height: 58px;
}
.wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  color: var(--brand); letter-spacing: -0.02em; text-decoration: none;
}
.wordmark small {
  font-family: var(--font-mono); font-weight: 400; font-size: 11px;
  color: var(--text-faint); margin-left: 8px; letter-spacing: 0.08em;
}
.wordmark:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 7px 13px; border-radius: 999px; color: var(--text-soft);
  font-weight: 500; font-size: 13.5px;
}
.nav a:hover { background: var(--brand-light); color: var(--brand); text-decoration: none; }
.nav a.active { background: var(--brand); color: #fff; }
.nav-user { font-size: 13px; color: var(--text-faint); display: flex; gap: 14px; align-items: center; }

/* ── Menu du client connecté (dropdown <details>) ── */
.user-menu { position: relative; }
.user-menu > summary {
  list-style: none; cursor: pointer; padding: 7px 13px; border-radius: 999px;
  color: var(--text-soft); font-weight: 500; font-size: 13.5px; user-select: none;
}
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover, .user-menu[open] > summary { background: var(--brand-light); color: var(--brand); }
.user-menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 210px;
  background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(13, 58, 82, .14); padding: 6px; display: flex; flex-direction: column;
}
.user-menu-panel a, .user-menu-panel button {
  display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: none;
  border-radius: 7px; color: var(--text); font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.user-menu-panel a:hover, .user-menu-panel button:hover {
  background: var(--brand-light); color: var(--brand); text-decoration: none;
}
.user-menu-section {
  padding: 8px 12px 3px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-faint);
}
.user-menu-rule { border-top: 1px solid var(--rule-soft); margin: 6px 0; }

/* ── Layout ── */
.page { max-width: var(--maxw); margin: 0 auto; padding: 30px 24px 70px; }
.page-header { margin: 6px 0 24px; }
.page-header h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: -0.02em; margin: 0 0 4px; color: var(--brand);
}
.page-header p { margin: 0; color: var(--text-soft); }
.overline {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-faint);
}

/* ── Cards ── */
.card {
  background: var(--surface); border: 1px solid var(--rule-soft);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}
.card h2 {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  margin: 0 0 14px; color: var(--text);
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Stats ── */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .value {
  font-family: var(--font-mono); font-size: 30px; font-weight: 700;
  color: var(--brand); line-height: 1.1;
}
.stat .label { font-size: 12.5px; color: var(--text-soft); }

/* ── Grade pills & scores ── */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; padding: 2px 9px; border-radius: 999px;
  font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; color: #fff;
}
.score-num { font-family: var(--font-mono); font-weight: 700; }
.score-big {
  font-family: var(--font-mono); font-weight: 700; font-size: 52px; line-height: 1;
}

/* ── Barres d'axe ── */
.axis-bar { display: grid; grid-template-columns: 150px 1fr 52px; gap: 12px; align-items: center; padding: 7px 0; }
.axis-bar.with-rank { grid-template-columns: 150px 1fr 52px minmax(200px, auto); }
.axis-bar .axis-rank { font-size: 12px; display: flex; gap: 10px; justify-content: flex-end; white-space: nowrap; }
.axis-bar .axis-rank a.muted { color: var(--text-faint); }
@media (max-width: 720px) {
  .axis-bar.with-rank { grid-template-columns: 150px 1fr 52px; }
  .axis-bar .axis-rank { grid-column: 1 / -1; justify-content: flex-start; padding-left: 2px; }
}
.axis-bar .name { font-size: 13px; color: var(--text-soft); }
.axis-bar .track { height: 8px; background: var(--rule-soft); border-radius: 999px; overflow: hidden; }
.axis-bar .fill { height: 100%; border-radius: 999px; transition: width .5s ease; }
.axis-bar .val { font-family: var(--font-mono); font-size: 13px; text-align: right; }

/* ── Radar des axes (SVG serveur) ── */
.radar-wrap { display: flex; justify-content: center; margin: 4px 0 16px; }
.radar { max-width: 100%; height: auto; }
.radar-dot { cursor: pointer; transition: r .1s ease; }
.radar-dot:hover { r: 6; }
.radar-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 6px 0 4px; }
.radar-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13px;
  cursor: pointer; padding: 2px 6px; border-radius: 6px; user-select: none; }
.radar-legend-item:hover { background: var(--brand-light); }
.radar-legend-item input { margin: 0; cursor: pointer; }
.radar-legend-swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
/* Info-bulle survol d'un point */
#radar-tip { position: fixed; z-index: 200; pointer-events: none; opacity: 0;
  background: var(--text); color: #fff; font-size: 12px; padding: 5px 9px;
  border-radius: 6px; white-space: nowrap; transition: opacity .1s ease; }
#radar-tip.show { opacity: 1; }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  text-align: left; padding: 9px 12px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint);
  border-bottom: 1px solid var(--rule);
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); }
/* Entêtes triables (comparateur) */
.data-table.sortable th { cursor: pointer; user-select: none; white-space: nowrap; }
.data-table.sortable th:hover { color: var(--brand); }
.data-table.sortable th.sort-desc::after { content: " ▾"; color: var(--brand); }
.data-table.sortable th.sort-asc::after { content: " ▴"; color: var(--brand); }
.data-table tbody tr:hover { background: var(--brand-light); }
.data-table tr[id] { scroll-margin-top: 76px; }
.data-table tr.hit { background: var(--brand-light); }
.stale-flag { color: #B45309; font-weight: 600; cursor: help; }
.data-table tr.hit td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.data-table .num { font-family: var(--font-mono); }
.data-table .rank { color: var(--text-faint); font-family: var(--font-mono); width: 40px; }

/* ── Formulaires ── */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-soft); }
input[type="text"], input[type="password"], input[type="number"], select, textarea {
  font: inherit; color: var(--text);
  padding: 8px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--surface); outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(19, 75, 107, 0.12);
}
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-weight: 600; font-size: 13.5px;
  padding: 8px 18px; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: #fff; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--brand); border-color: var(--rule); }
.btn.secondary:hover { background: var(--brand-light); }
.btn.danger { background: transparent; color: var(--accent); border-color: var(--rule); }
.btn.small { padding: 4px 12px; font-size: 12.5px; }
/* CTA principal — rouge brique (charte kimoun.com) */
.btn.cta { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn.cta:hover { background: var(--brick-dark); border-color: var(--brick-dark); }

/* ── Bloc audit de sécurité (offre Accompagné) ── */
.security-block {
  max-width: 980px; margin: 46px auto 0; padding: 26px 28px;
  border: 1px solid var(--brick-light); border-left: 5px solid var(--brick);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--brick-pale) 0%, var(--surface) 55%);
}
.security-block .sec-badge {
  display: inline-block; background: var(--brick); color: #fff; font-size: 11.5px;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 11px; border-radius: 999px; margin-bottom: 10px;
}
.security-block h2 { font-family: var(--font-display); color: var(--brick-dark);
  margin: 0 0 8px; font-size: 22px; }
.security-block > p { color: var(--text-soft); max-width: 720px; margin: 0 0 8px; }
.security-note { font-size: 13px; color: var(--text-soft); background: var(--brick-pale);
  border: 1px solid var(--brick-light); border-radius: 8px; padding: 10px 14px; margin: 12px 0 16px; }
.security-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 4px 0 18px; }
@media (max-width: 640px) { .security-modes { grid-template-columns: 1fr; } }
.security-mode { background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 16px 18px; }
.security-mode h3 { margin: 0 0 6px; font-size: 15px; color: var(--brand); }
.security-mode ul { margin: 8px 0 0; padding-left: 1.1em; font-size: 13.5px; color: var(--text-soft); }
.security-mode li { margin-bottom: 3px; }

/* ── Filtres inline ── */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.filters .field { margin-bottom: 0; }

/* ── Badges de statut ── */
.status {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.status.done, .status.success { background: #D1FAE5; color: #065F46; }
.status.running, .status.pending { background: var(--brand-light); color: var(--brand); }
.status.failed { background: #FEE2E2; color: #991B1B; }
.status.skipped { background: var(--rule-soft); color: var(--text-soft); }

/* ── Recommandations d'audit DNS ── */
.reco-list { list-style: none; padding: 0; margin: 0; }
.reco-list li { padding: 9px 0; border-bottom: 1px solid var(--rule-soft); font-size: 13.5px; }
.reco-list li:last-child { border-bottom: 0; }
.sev { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; margin-right: 8px; }
.sev-critical { background: #FEE2E2; color: #991B1B; }
.sev-major { background: #FEF3C7; color: #92400E; }
.sev-minor { background: var(--brand-light); color: var(--brand); }

/* ── Progress ── */
.progress { height: 10px; background: var(--rule-soft); border-radius: 999px; overflow: hidden; }
.progress .bar { height: 100%; background: var(--brand); border-radius: 999px; transition: width .4s ease; }

/* ── Divers ── */
.sparkline { vertical-align: middle; }
.muted { color: var(--text-faint); }
.small { font-size: 12.5px; }
.mono { font-family: var(--font-mono); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--brand-light); color: var(--brand);
  border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 500;
}
a.chip:hover { background: var(--brand); color: #fff; text-decoration: none; }
.chip.active { background: var(--brand); color: #fff; }
.chip .v { font-family: var(--font-mono); opacity: 0.75; margin-left: 4px; }
.empty { text-align: center; color: var(--text-faint); padding: 46px 0; }
.key-reveal {
  background: #0D3A52; color: #B7E4C7; font-family: var(--font-mono);
  padding: 14px 16px; border-radius: var(--radius-sm); font-size: 13px;
  word-break: break-all; margin: 12px 0;
}
.notice {
  background: var(--brand-light); border-left: 3px solid var(--brand);
  padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px; margin: 12px 0;
}
.htmx-request .htmx-indicator { display: inline; }
.htmx-indicator { display: none; }

/* ── Modale native ── */
dialog#modal, dialog.modal {
  border: none; border-radius: var(--radius); padding: 0;
  max-width: 480px; width: calc(100vw - 48px);
  box-shadow: 0 24px 80px rgba(13, 58, 82, 0.25);
}
dialog#modal::backdrop, dialog.modal::backdrop { background: rgba(13, 58, 82, 0.35); }
.modal-body { padding: 26px 28px; position: relative; }
.modal-body h2 { font-family: var(--font-display); margin: 4px 0 10px; color: var(--brand); }
.modal-close {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  font-size: 22px; color: var(--text-faint); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.measure-link {
  background: none; border: none; padding: 0; font: inherit; color: var(--text);
  cursor: pointer; border-bottom: 1px dashed var(--rule); text-align: left;
}
.measure-link:hover { color: var(--brand); border-bottom-color: var(--brand); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.notice-error { border-left-color: var(--accent); background: #FEE2E2; }

/* ── Contenu riche (pages guides) ── */
.prose { line-height: 1.7; }
.prose h2 { font-family: var(--font-display); font-size: 17px; color: var(--brand); margin: 22px 0 8px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }

/* ── Partage ── */
.share-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--text-soft);
  font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none;
  font-family: var(--font-body);
}
.share-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); text-decoration: none; }

/* ── Encart « votre site ? » ── */
.claim-banner {
  margin-top: 22px; padding: 18px 22px; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.claim-banner strong { font-family: var(--font-display); }
.claim-banner .btn { background: #fff; color: var(--brand); }
.claim-banner .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

/* ── Tunnel de vente de la fiche site ── */
/* Rappel discret au-dessus de la ligne de flottaison (après le score) */
.sell-strip {
  margin-top: 18px; padding: 13px 20px; border-radius: var(--radius);
  border: 1px solid var(--rule); background: var(--brand-light);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; color: var(--text); text-decoration: none;
}
.sell-strip:hover { text-decoration: none; border-color: var(--brand); }
.sell-strip .sell-strip-txt { font-size: 14px; }
.sell-strip strong { font-family: var(--font-display); color: var(--brand); }
.sell-strip .btn { white-space: nowrap; }

/* Bloc offre principal (bas de page) */
.sell-card { margin-top: 22px; border: 1px solid var(--rule); }
.sell-card .sell-eyebrow { text-transform: uppercase; letter-spacing: .05em; font-size: 12px;
  font-weight: 700; color: var(--accent); margin: 0 0 6px; }
.sell-card h2 { font-family: var(--font-display); color: var(--brand); font-size: 22px; margin: 0 0 8px; }
.sell-card > p { color: var(--text-soft); max-width: 640px; margin: 0 0 14px; }
.sell-points { list-style: none; padding: 0; margin: 0 0 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
@media (max-width: 560px) { .sell-points { grid-template-columns: 1fr; } }
.sell-points li { position: relative; padding-left: 24px; font-size: 14px; }
.sell-points li::before { content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--imn-a, #0CA750); font-weight: 700; }
.sell-card .cta-row { align-items: center; }
.sell-card .price-hint { font-family: var(--font-display); color: var(--brand);
  font-weight: 700; margin-left: 4px; }

/* ── Onglets du rapport (aperçu / code source) ── */
.report-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.report-tabs { display: inline-flex; background: var(--rule-soft); border-radius: 999px; padding: 3px; gap: 2px; }
.report-tab {
  display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer;
  background: transparent; color: var(--text-soft); font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
}
.report-tab.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.report-tab svg { display: block; }
.report-copy {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); cursor: pointer;
  background: var(--surface); color: var(--text-soft); font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: var(--radius-sm);
}
.report-copy:hover { color: var(--brand); border-color: var(--brand); }
.report-source {
  background: #0D3A52; color: #E6EBF0; padding: 20px 22px; border-radius: var(--radius);
  overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
.report-source code { color: inherit; background: none; }

/* ── Hub des offres ── */
.hub-card { display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s; }
.hub-card:hover { box-shadow: 0 8px 30px rgba(19,75,107,.12); text-decoration: none; }
.hub-card h2 { font-family: var(--font-display); color: var(--brand); margin: 0; }
.hub-card .btn { margin-top: auto; align-self: flex-start; }

/* ── Grille de crédits ── */
.credits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 700px) { .credits-grid { grid-template-columns: repeat(2, 1fr); } }
.credit-card {
  position: relative; text-align: center; padding: 18px 12px;
  border: 1px solid var(--rule-soft); border-radius: var(--radius); background: var(--surface);
}
.credit-featured { border: 2px solid var(--brand); }
.credit-qty { font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: 16px; }
.credit-unit { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--text); margin-top: 4px; }
.credit-unit .muted { font-weight: 400; font-size: 11px; }
.credit-discount { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--imn-a); margin: 4px 0 2px; }

/* ── Navigation de l'espace compte ── */
.account-nav { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--rule-soft); }
.account-nav a { padding: 8px 14px; color: var(--text-soft); font-size: 13.5px; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-nav a:hover { color: var(--brand); text-decoration: none; }
.account-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.account-subnav { margin-top: -8px; margin-bottom: 16px; font-size: 12.5px; }
.account-subnav a { padding: 6px 11px; }
.score-badge { display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; border-radius: 12px; padding: 8px 16px; min-width: 92px; }
.score-badge-num { font-family: var(--font-mono); font-size: 28px; font-weight: 700; line-height: 1; }
.score-badge-grade { font-size: 11px; font-weight: 700; letter-spacing: .06em; margin-top: 3px; }

/* ── Onglet Suivi : jauges circulaires + deltas ── */
.suivi-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.suivi-score { display: flex; align-items: center; gap: 18px; }
.suivi-grade { font-family: var(--font-display); font-size: 20px; color: var(--brand); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.suivi-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gauge-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
@media (max-width: 760px) { .gauge-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 440px) { .gauge-grid { grid-template-columns: repeat(2, 1fr); } }
.gauge-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.gauge-label { font-size: 12px; color: var(--text-soft); line-height: 1.2; }
.gauge-empty { width: 88px; height: 88px; border-radius: 999px; border: 8px solid var(--rule-soft);
  display: flex; align-items: center; justify-content: center; color: var(--text-faint); box-sizing: border-box; }
.delta { font-size: 12px; font-weight: 700; white-space: nowrap; }
.delta.up { color: #0CA750; }
.delta.down { color: #E03E2F; }
.delta.flat { color: var(--text-faint); font-weight: 500; }

/* ── Panneau d'audit en cours (animation cosmétique) ── */
.audit-live-head { display: flex; align-items: center; gap: 14px; }
.audit-live-spinner { flex: none; width: 26px; height: 26px; border-radius: 999px;
  border: 3px solid var(--rule-soft); border-top-color: var(--brand);
  animation: audit-spin .8s linear infinite; }
.audit-live-bar { height: 6px; border-radius: 999px; background: var(--rule-soft);
  overflow: hidden; margin: 16px 0 4px; }
.audit-live-bar > span { display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--brand); transition: width .7s cubic-bezier(.4,0,.2,1); }
.audit-live-tasks { list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; }
@media (max-width: 620px) { .audit-live-tasks { grid-template-columns: 1fr; } }
.audit-task { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0;
  transition: opacity .4s ease; }
.audit-task-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 999px;
  border: 2px solid var(--rule-soft); box-sizing: border-box; position: relative; transition: all .3s ease; }
.audit-task-body { display: flex; flex-direction: column; line-height: 1.25; }
.audit-task-body strong { font-size: 14px; color: var(--text); }
.audit-task-detail { font-size: 12px; color: var(--text-faint); }
.audit-task.is-pending { opacity: .45; }
.audit-task.is-running .audit-task-icon { border-color: var(--brand);
  border-top-color: transparent; animation: audit-spin .7s linear infinite; }
.audit-task.is-running .audit-task-body strong { color: var(--brand); }
.audit-task.is-done .audit-task-icon { border-color: #0CA750; background: #0CA750;
  animation: none; }
.audit-task.is-done .audit-task-icon::after { content: ""; position: absolute;
  left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg); }
@keyframes audit-spin { to { transform: rotate(360deg); } }
.audit-notify-bell { flex: none; width: 26px; height: 26px; font-size: 22px; line-height: 26px;
  text-align: center; animation: audit-ring 2.2s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes audit-ring { 0%,88%,100% { transform: rotate(0); } 91% { transform: rotate(12deg); }
  94% { transform: rotate(-9deg); } 97% { transform: rotate(5deg); } }
.audit-notify-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

/* ── Offres (Good-Better-Best) ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.pricing-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .pricing-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pricing-grid.cols-4 { grid-template-columns: 1fr; } }
.plan-option { background: var(--brand-light); border-radius: 8px; padding: 8px 12px;
  font-size: 12.5px; color: var(--text-soft); }
.pricing-card {
  position: relative; background: var(--surface); border: 1px solid var(--rule-soft);
  border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.pricing-featured { border: 2px solid var(--brand); box-shadow: 0 8px 30px rgba(19,75,107,.12); }
.pricing-badge {
  position: absolute; top: -12px; left: 22px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.pricing-card h2 { font-family: var(--font-display); font-size: 20px; color: var(--brand); margin: 0; }
.pricing-tagline { color: var(--text-soft); font-size: 13.5px; margin: 0; min-height: 38px; }
.pricing-price { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--text); }
.pricing-features { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 7px; }
.pricing-features li { font-size: 13.5px; padding-left: 22px; position: relative; }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--imn-a); font-weight: 700; }
.pricing-card .btn { margin-top: auto; justify-content: center; }

/* ── Matrice d'offres : deux escaliers parallèles (Auditer / Surveiller) ── */
.offer-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; max-width: 980px; margin: 0 auto; }
@media (max-width: 860px) { .offer-matrix { grid-template-columns: 1fr; } }
.offer-axis { display: flex; flex-direction: column; gap: 14px; }
.offer-axis-head { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; border-bottom: 2px solid var(--rule-soft); }
.offer-axis-icon { font-size: 26px; }
.offer-axis-head h2 { font-family: var(--font-display); font-size: 20px; color: var(--brand); margin: 0; }
.offer-tier { padding: 18px 20px; gap: 8px; }
.offer-tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.offer-tier-head h3 { font-family: var(--font-display); font-size: 19px; color: var(--brand); margin: 0; }
.offer-tier .pricing-tagline { min-height: 0; }
.offer-bridge { max-width: 980px; margin: 20px auto 0; }
.offer-bridge .card { display: flex; align-items: flex-start; gap: 14px; background: var(--brand-light); border: 0; }
.offer-bridge-arrow { font-size: 24px; color: var(--brand); font-weight: 700; line-height: 1.2; }

/* ── Page /offres/ : récit méthodologique ── */
.method-steps { display: flex; align-items: stretch; justify-content: center; gap: 14px;
  flex-wrap: wrap; max-width: 820px; margin: 0 auto 34px; }
.method-step { display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--rule-soft); border-radius: var(--radius); padding: 16px 20px; flex: 1; min-width: 260px; }
.method-num { flex: 0 0 32px; height: 32px; border-radius: 999px; background: var(--brand); color: #fff;
  font-weight: 700; display: flex; align-items: center; justify-content: center; }
.method-arrow { display: flex; align-items: center; color: var(--brand); font-size: 22px; font-weight: 700; }
@media (max-width: 620px) { .method-arrow { transform: rotate(90deg); } }
.section-title { font-family: var(--font-display); color: var(--brand); font-size: 22px;
  text-align: center; margin: 0 0 6px; }
.section-lead { text-align: center; color: var(--text-soft); max-width: 680px; margin: 0 auto 20px; font-size: 14px; }
.offer-note { max-width: 900px; margin: 16px auto 0; background: var(--brand-light); border-radius: 10px;
  padding: 12px 16px; font-size: 13px; color: var(--text-soft); }
.watch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 980px; margin: 0 auto; }
@media (max-width: 860px) { .watch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .watch-grid { grid-template-columns: 1fr; } }

/* Résumé « ce qu'on obtient » mis en avant sur les cartes d'audit */
.offer-summary { font-weight: 700; color: var(--brand); font-size: 14px; margin: 6px 0 2px;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule-soft); }

/* ── Tableau de comparaison des offres d'audit ── */
.compare-wrap { max-width: 900px; margin: 0 auto; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 13.5px; }
.compare-table th, .compare-table td { padding: 10px 14px; text-align: center; border-bottom: 1px solid var(--rule-soft); }
.compare-table thead th { font-family: var(--font-display); color: var(--brand); font-size: 16px; padding-top: 4px; }
.compare-table tbody th { text-align: left; font-weight: 600; color: var(--text); }
.compare-level { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.compare-table .compare-hl { background: var(--brand-light); }
.compare-table thead .compare-hl { border-top-left-radius: 10px; border-top-right-radius: 10px; }
.compare-table .yes { color: #0CA750; font-weight: 700; font-size: 15px; }
.compare-table .no { color: #E03E2F; font-weight: 700; font-size: 15px; }
.compare-cta td, .compare-cta th { border-bottom: 0; padding-top: 14px; }
.compare-cta .compare-hl { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
.watch-card { background: var(--surface); border: 1px solid var(--rule-soft); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.watch-featured { border: 2px solid var(--brand); }
.watch-name { font-family: var(--font-display); font-size: 17px; color: var(--brand); font-weight: 700; }
.watch-tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--brand); color: #fff; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.watch-price { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--text); }

/* ── Pied de page ── */
.site-footer { border-top: 1px solid var(--rule-soft); margin-top: 40px; background: var(--surface); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; font-size: 13px; color: var(--text-faint);
}
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner a { color: var(--text-soft); }

/* ── Bannière de consentement (mesure d'audience) ── */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(13, 58, 82, 0.18);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px;
}
.consent-banner .consent-text { margin: 0; font-size: 13.5px; color: var(--text-soft); flex: 1; min-width: 240px; }
.consent-banner .consent-actions { display: flex; gap: 8px; }

/* Entrée de page discrète.
   `backwards` (et non `both`) : l'état initial n'est appliqué que pendant le
   délai, puis l'élément revient à son style de base — sans transform résiduel.
   Avec `both`, un transform identité persistait et créait une couche de
   composition qui n'était plus repeinte au scroll sur les pages hautes
   (contenu blanc). L'effet visuel d'entrée est inchangé. */
@media (prefers-reduced-motion: no-preference) {
  .page > * { animation: rise .35s ease backwards; }
  .page > *:nth-child(2) { animation-delay: .05s; }
  .page > *:nth-child(3) { animation-delay: .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
}

/* ── Landing (accueil public) ── */
.hero { text-align: center; max-width: 720px; margin: 22px auto 8px; padding: 0 4px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: 12px;
  font-weight: 600; color: var(--brand); margin: 0 0 12px; }
.hero h1 { font-family: var(--font-display); font-size: 38px; line-height: 1.12;
  color: var(--brand); margin: 0 0 14px; }
.hero-lede { font-size: 16px; color: var(--text-soft); max-width: 600px; margin: 0 auto 22px; }
.hero-audit { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.hero-audit input { flex: 1; padding: 11px 14px; border: 1px solid var(--rule);
  border-radius: var(--radius); font-size: 15px; background: var(--surface); }
.hero-audit input:focus { outline: none; border-color: var(--brand); }
.hero-audit .btn { white-space: nowrap; }
.hero-note { font-size: 12.5px; color: var(--text-faint); margin: 10px 0 0; }
@media (max-width: 520px) { .hero h1 { font-size: 30px; } .hero-audit { flex-direction: column; } }

.landing-section { max-width: 980px; margin: 46px auto 0; }
.landing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .landing-steps { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 6px 8px; }
.step .step-num { display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; background: var(--brand-light);
  color: var(--brand); font-family: var(--font-display); font-weight: 700; margin-bottom: 10px; }
.step h3 { margin: 0 0 4px; font-size: 15px; color: var(--brand); }
.step p { margin: 0; font-size: 13px; color: var(--text-soft); }
.axes-inline { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.axes-inline span { background: var(--brand-light); color: var(--brand); border-radius: 999px;
  padding: 5px 13px; font-size: 12.5px; font-weight: 600; }

.study-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 14px; }
.study-head h2 { margin: 0; font-family: var(--font-display); color: var(--brand); font-size: 22px; }
.study-head .study-link { font-size: 13.5px; white-space: nowrap; }

.landing-cta { max-width: 720px; margin: 52px auto 8px; text-align: center;
  background: var(--brand); color: #fff; border-radius: var(--radius); padding: 30px 24px; }
.landing-cta h2 { font-family: var(--font-display); margin: 0 0 6px; font-size: 24px; }
.landing-cta p { margin: 0 0 16px; color: rgba(255,255,255,.85); }
.landing-cta .btn { background: #fff; color: var(--brand); }
.landing-cta .btn:hover { background: var(--brand-light); }
.landing-cta .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.landing-cta .btn.secondary:hover { background: rgba(255,255,255,.12); }
