/* ── 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;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 28px; width: auto; display: block; }
.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; }
.nav-account { display: inline-flex; align-items: center; gap: 14px; }

/* ── Burger + navigation mobile ── */
.nav-burger { display: none; background: none; border: 0; color: var(--brand);
  padding: 6px; margin-left: 4px; cursor: pointer; border-radius: 8px; }
.nav-burger:hover { background: var(--brand-light); }
.nav-mobile { display: none; flex-direction: column; padding: 6px 20px 16px;
  border-top: 1px solid var(--rule-soft); background: var(--surface); }
.nav-mobile a, .nav-mobile-logout { display: block; width: 100%; text-align: left;
  padding: 12px 4px; color: var(--text-soft); font-weight: 500; font-size: 15.5px;
  background: none; border: 0; cursor: pointer; }
.nav-mobile a:hover, .nav-mobile-logout:hover { color: var(--brand); text-decoration: none; }
.nav-mobile-rule { height: 1px; background: var(--rule-soft); margin: 6px 0; }

@media (max-width: 800px) {
  .topbar-inner { gap: 10px; padding: 0 16px; }
  .nav { display: none; }
  .nav-account { display: none; }
  .nav-user { margin-left: auto; gap: 8px; }
  .nav-burger { display: inline-flex; }
  .nav-mobile.open { display: flex; }
}

/* ── Barre CTA collante (mobile, pages marketing) ── */
.mobile-cta-bar, .mobile-cta-spacer { display: none; }
@media (max-width: 800px) {
  .mobile-cta-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--brick); color: #fff; text-align: center; text-decoration: none;
    padding: 15px 16px; font-weight: 700; font-size: 16px;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, .14);
  }
  .mobile-cta-bar:hover { text-decoration: none; color: #fff; }
  .mobile-cta-bar span { font-weight: 400; opacity: .9; }
  .mobile-cta-spacer { display: block; height: 62px; }
}

/* ── Gabarit page-guide/méthodologie (contenu + encart d'action) ── */
.guide-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.guide-layout .guide-aside { position: sticky; top: 76px; }
@media (max-width: 820px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-layout .guide-aside { position: static; }
}

/* ── CTA + réassurance en tête de page marketing ── */
.offer-hero-cta { margin-top: 22px; }
.reassure { color: var(--text-faint); font-size: 13.5px; margin: 12px 0 0; }
.reassure strong { color: var(--text-soft); }

/* ── Ligne de confiance (sources publiques) ── */
.trust-line { text-align: center; color: var(--text-faint); font-size: 13px;
  margin: 18px auto 0; max-width: 660px; }
.trust-line strong { color: var(--text-soft); }

/* ── Bandeau CTA intermédiaire ── */
.cta-band { text-align: center; background: var(--brick-pale); border-radius: 14px;
  padding: 24px 20px; margin: 30px auto; max-width: 760px; }
.cta-band p { margin: 0 0 14px; font-weight: 600; color: var(--brand); font-size: 16px; }

/* ── Page Auditer (formulaire + « ce que vous obtenez ») ── */
.audit-page { max-width: 560px; margin: 40px auto; }
.audit-gets-title { text-align: center; font-weight: 600; color: var(--brand); margin: 26px 0 8px; }
.audit-gets { max-width: 460px; margin: 0 auto; list-style: none; padding: 0; }
.audit-gets li { position: relative; padding: 9px 0 9px 30px; color: var(--text-soft);
  font-size: 14.5px; line-height: 1.5; border-bottom: 1px solid var(--rule-soft); }
.audit-gets li:last-child { border-bottom: 0; }
.audit-gets li::before { content: "\2713"; position: absolute; left: 4px; top: 9px;
  color: var(--brick); font-weight: 800; }

/* ── FAQ (accordéon natif) ── */
.faq { max-width: 760px; margin: 12px auto 0; }
.faq-item { border: 1px solid var(--rule-soft); border-radius: 10px; margin-bottom: 10px;
  background: var(--surface); }
.faq-item > summary { cursor: pointer; padding: 14px 46px 14px 18px; font-weight: 600;
  color: var(--brand); list-style: none; position: relative; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; position: absolute; right: 18px; top: 12px;
  font-size: 20px; font-weight: 400; color: var(--text-faint); }
.faq-item[open] > summary::after { content: "\2212"; }
.faq-item > p { margin: 0; padding: 0 18px 16px; color: var(--text-soft); font-size: 14.5px; line-height: 1.55; }

/* Bloc « réponse directe » / définition (GEO) : texte extractible par les IA,
   placé en surcouche du hero sans le remplacer. */
.geo-answer { max-width: 760px; margin: 0 auto; padding: 14px 20px;
  border-left: 3px solid var(--brand); background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text);
  font-size: 15.5px; line-height: 1.6; }
.geo-answer strong { color: var(--brand); }
.geo-faq { margin-top: 8px; }

/* Palmarès par segment (pages classement/listicle) */
.palmares-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.palmares-item h3 { font-family: var(--font-display); font-size: 17px; color: var(--brand); margin: 0 0 4px; }
.palmares-item h3 .pill { font-size: 12px; vertical-align: middle; margin-left: 4px; }
.palmares-sub { margin: 0 0 10px; }
.palmares-pc { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; }
.palmares-pc li { padding: 3px 0 3px 20px; position: relative; color: var(--text-soft); }
.palmares-pc li.pro::before { content: "\2191"; position: absolute; left: 0; color: var(--imn-a); font-weight: 700; }
.palmares-pc li.con::before { content: "\2193"; position: absolute; left: 0; color: var(--imn-d); font-weight: 700; }
.palmares-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; }
.palmares-link strong { color: var(--brand); }

/* Axe non remonté car le robots.txt du site interdit nos crawlers maison */
.axis-blocked { color: #B45309; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* Page Mesures : sections « au-delà de l'indice » (mesures avancées / sur mesure) */
.mesures-group { font-family: var(--font-display); font-size: 14px; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.mesure-plus { position: relative; }
.mesure-plus h3 { font-family: var(--font-display); font-size: 17px; color: var(--brand); margin: 4px 0 6px; }
.offre-badge { display: inline-block; background: var(--brick-pale); color: var(--brick-dark);
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }

/* Diagnostic — listicle des personas + landings */
.persona-card { display: flex; flex-direction: column; text-decoration: none; position: relative;
  padding: 22px 22px 20px; overflow: hidden;
  transition: border-color .16s, transform .16s, box-shadow .16s; }
.persona-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--fam-accent, var(--brick)); transform-origin: left; transition: transform .18s; }
.persona-card:hover { border-color: var(--brick-light); transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(19, 75, 107, .12); text-decoration: none; }
.persona-card:hover::before { transform: scaleX(1); }
.persona-emoji { display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 12px;
  color: var(--fam-accent, var(--brand)); background: var(--brand-light);
  background: color-mix(in srgb, var(--fam-accent, var(--brand)) 12%, #fff);
  transition: background .16s; }
.persona-emoji svg { width: 24px; height: 24px; }
.persona-card:hover .persona-emoji { background: color-mix(in srgb, var(--fam-accent, var(--brand)) 20%, #fff); }
.persona-card h2 { font-family: var(--font-display); font-size: 17.5px; color: var(--brand); margin: 0 0 4px; }
.persona-card .hook { color: var(--text-soft); font-size: 13.5px; line-height: 1.5; margin: 0; }
.persona-go { margin-top: auto; padding-top: 16px; color: var(--brick); font-weight: 700; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 6px; }
.persona-go .arrow { transition: transform .16s; }
.persona-card:hover .persona-go .arrow { transform: translateX(4px); }
.persona-card:hover .persona-go-txt { text-decoration: underline; text-underline-offset: 3px; }
.persona-card.is-other { background: transparent; box-shadow: none; border-style: dashed; }
/* Overline de la landing persona : icône filaire inline alignée au label */
.overline-ico { display: inline-flex; align-items: center; gap: 6px; }
.overline-ico svg { width: 1.05em; height: 1.05em; }

/* Diagnostic — TL;DR définitionnel + ligne de réassurance */
.diag-tldr { font-size: 14px; line-height: 1.6; color: var(--text-soft); margin: 14px 0 12px; }
.diag-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 18px; padding: 0; margin: 0; font-size: 13px; font-weight: 700; color: var(--brand); }
.diag-trust li { position: relative; }
.diag-trust li + li::before { content: "·"; position: absolute; left: -11px; color: var(--text-soft);
  font-weight: 400; }

/* La FAQ du diagnostic réutilise le composant partagé (partials/geo_faq.html) : .geo-faq / .faq / .faq-item */

/* Diagnostic — cartes : eyebrow famille + ligne enjeu + accents de famille */
.persona-fam { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fam-accent, var(--brick)); margin: 0 0 4px; }
.persona-enjeu { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text);
  padding-left: 10px; border-left: 2px solid var(--fam-accent, var(--brick)); }
.persona-fam-commerce { --fam-accent: var(--brick); }
.persona-fam-services { --fam-accent: var(--brand); }
.persona-fam-public   { --fam-accent: var(--sec); }
.persona-fam-autre    { --fam-accent: var(--text-faint); }

/* Diagnostic — chemin rapide « mesure directe » */
.diag-shortcut { text-align: center; margin: 22px auto 0; font-size: 14px; color: var(--text-soft); }
.diag-shortcut a { font-weight: 700; }

/* Diagnostic — « Comment ça marche » */
.diag-how { max-width: 820px; margin: 44px auto 0; }
.diag-how h2 { font-family: var(--font-display); color: var(--brand); text-align: center; margin: 0 0 22px; }
.diag-steps { list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 20px; }
.diag-steps li { display: flex; gap: 12px; align-items: flex-start; }
.diag-step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand);
  color: #fff; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center;
  justify-content: center; }
.diag-steps strong { display: block; color: var(--brand); font-size: 14.5px; margin-bottom: 3px; }
.diag-steps p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-soft); }
@media (max-width: 640px) { .diag-steps { grid-template-columns: 1fr; } }

/* Diagnostic — bandeau d'autorité (chiffre observatoire) */
.diag-authority { max-width: 760px; margin: 40px auto 0; padding: 18px 22px;
  background: var(--brand-light); border-radius: var(--radius); text-align: center; }
.diag-authority p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--text); }
.diag-authority a { font-weight: 700; font-size: 13.5px; }

.pain-card h3 { font-family: var(--font-display); font-size: 15.5px; color: var(--brand); margin: 0 0 6px; }

/* Quiz du diagnostic (miroir de valeur) */
.obj-list { display: flex; flex-direction: column; gap: 8px; }
.obj { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--rule-soft);
  border-radius: 9px; cursor: pointer; transition: border-color .12s, background .12s; }
.obj:hover { border-color: var(--brick-light); background: var(--brick-pale); }
.obj:has(input:checked) { border-color: var(--brick); background: var(--brick-pale); font-weight: 600; }
.roi-line { margin: 12px 0 0; font-weight: 700; color: var(--brick-dark); font-size: 15px; }
/* Le miroir de valeur est ciblé par scrollIntoView : dégager la topbar sticky (58px). */
#step-resa { scroll-margin-top: 76px; }

/* Fiche site : score « en cours de calcul » pendant qu'un crawler tourne */
.score-live { animation: scorePulse 1.1s ease-in-out infinite; font-variant-numeric: tabular-nums; }
@keyframes scorePulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.dots span { animation: dotBlink 1.4s infinite both; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotBlink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.remeasure { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 6px; }
.remeasure altcha-widget { --altcha-max-width: 240px; }
/* Bouton rétrogradé en lien discret : la re-mesure d'une fiche complète ne doit
   pas être l'action dominante de la carte score. */
.linklike { background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--text-soft);
  text-decoration: underline; text-underline-offset: 2px; }
.linklike:hover { color: var(--text); }
/* En-têtes Top/Bottom 10 cliquables → vue complète pré-triée */
.rank-link { color: inherit; text-decoration: none; }
.rank-link:hover, .rank-link:hover .muted { color: var(--brand); }
.rank-link .muted { transition: color .12s; }
/* Ancres cliquables sur les titres de section : « # » sobre, gris et petit, invisible
   au repos et seulement esquissé au survol du titre (plus marqué au survol direct/focus). */
.anchor-h { scroll-margin-top: 84px; }
.anchor-link { margin-left: .3em; color: var(--text-soft); text-decoration: none; font-weight: 400;
  font-size: .7em; vertical-align: middle; opacity: 0; transition: opacity .12s; }
.anchor-h:hover .anchor-link { opacity: .3; }
.anchor-link:hover, .anchor-link:focus { opacity: .75; text-decoration: none; }
/* Titres markdown (.prose) : mêmes ancres, injectées par l'extension toc */
.prose :is(h1, h2, h3, h4, h5, h6) { scroll-margin-top: 84px; }
.prose :is(h1, h2, h3, h4, h5, h6):hover .anchor-link { opacity: .3; }
/* Bandeau opt-out robots : rangée d'actions (autoriser le bot / contact) */
.notice-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.notice-cta-link { font-size: 13px; white-space: nowrap; }
/* En-têtes de tableau triables (ops/batches) */
.th-sort { color: inherit; text-decoration: none; white-space: nowrap; cursor: pointer; }
.th-sort:hover { color: var(--brand); }
.th-sort.active { color: var(--brand); }
/* Détail des points bonus sur la fiche (pionnier Lisibilité IA, sécurité > 100…) */
.bonus-detail { margin-top: 5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bonus-total { font-weight: 700; color: var(--imn-a, #0CA750); }
.bonus-sig { font-size: 11.5px; padding: 1px 7px; border-radius: 10px; white-space: nowrap; }
.bonus-sig.on { background: #E7F7EE; color: #0A7C3E; }
.bonus-sig.off { background: var(--rule-soft); color: var(--text-faint); }
/* Malus (miroir du bonus, en rouge) — ex. certificat TLS invalide sous l'axe DNS/Email */
.malus-detail { margin-top: 5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.malus-total { font-weight: 700; color: var(--imn-f, #FF4E42); }
.malus-sig { font-size: 11.5px; padding: 1px 7px; border-radius: 10px; white-space: nowrap;
  background: #FEE2E2; color: #B91C1C; }

/* ── 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; }
/* Menu « ⋯ » d'une ligne de tableau (actions secondaires d'un site suivi) */
.row-menu > summary { padding: 2px 10px; font-weight: 700; font-size: 15px; }
.row-menu .user-menu-panel { min-width: 190px; }
.row-menu form { margin: 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: var(--fs-h1);
  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: var(--fs-h2); font-weight: 700;
  margin: 0 0 14px; color: var(--text);
}
.card--flush { padding: 0; }
.stack { margin-top: var(--sp-3); }
.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; }
/* Bloc Rangs (fiche) : chaque ligne entière est un lien vers la page
   voisinage — affordance par le survol (fond) + chevron, sans soulignement. */
.rank-list { display: flex; flex-direction: column; font-size: 13.5px; }
.rank-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); color: var(--text);
}
.rank-list > :last-child { border-bottom: none; }
a.rank-row:hover { background: var(--brand-light); color: var(--brand); }
.rank-row .num { font-family: var(--font-mono); }
/* Pastille grade dominante par axe (« F · 3/100 ») : la lettre parle, la note
   prouve. La lettre est du texte (jamais la couleur seule). Sur les fonds
   clairs B (--imn-b) et C (--imn-c), le blanc ne contraste pas assez :
   texte foncé imposé par data-grade. */
.pill-grade {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; color: #fff;
}
.pill-grade strong { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.pill-grade[data-grade="B"], .pill-grade[data-grade="C"] { color: var(--text); }
/* Variante H1 (fiche site) : grade global en fin de titre, échelle relative au
   titre, insécable pour ne pas partir seul à la ligne sous le domaine. */
.pill-grade--h1 { font-size: .42em; vertical-align: .22em; padding: 3px 12px; white-space: nowrap; }
.pill-grade--h1 strong { font-size: 1.2em; }
/* Texte pour lecteurs d'écran (et extraction texte) — invisible à l'écran. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.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; }
/* Axe en cours de mesure : barre indéterminée « barber-pole » bleue */
.axis-bar .fill.fill-pending {
  width: 100%;
  background: repeating-linear-gradient(45deg,
      #2563EB 0 10px, rgba(37, 99, 235, .30) 10px 20px);
  animation: axis-pending 1.1s linear infinite;
}
/* période horizontale d'un motif de 20px tracé à 45° = 20/sin(45°) ≈ 28.28px */
@keyframes axis-pending { to { background-position: 28.28px 0; } }
@media (prefers-reduced-motion: reduce) {
  .axis-bar .fill.fill-pending { animation: none; opacity: .55; }
}
.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="email"], input[type="url"], input[type="tel"],
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(--sec-line); border-left: 5px solid var(--sec);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--sec-wash) 0%, var(--surface) 55%);
}
.security-block .sec-badge {
  display: inline-block; background: var(--sec); 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(--sec);
  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(--sec-wash);
  border: 1px solid var(--sec-line); 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; }
/* État vide plein écran (carte) — pattern unique de l'espace compte. */
.empty-state { text-align: center; padding: 40px 22px; }
.empty-state h2 { font-family: var(--font-display); font-size: var(--fs-h2);
  color: var(--brand); margin: 0 0 8px; }
.empty-state p { color: var(--text-soft); max-width: 520px; margin: 0 auto 16px; }
.empty-state .cta-row { justify-content: center; }
.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; }

/* ── Toasts (retours d'action, messages Django) ── */
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 500;
  display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 36px)); }
.toast { background: var(--brand-dark); color: #fff; border-radius: var(--radius-sm);
  padding: 11px 38px 11px 14px; font-size: 13.5px; line-height: 1.45; position: relative;
  box-shadow: 0 8px 24px rgba(13, 58, 82, .22); }
.toast.toast-error { background: #7F1D1D; }
.toast-close { position: absolute; top: 6px; right: 8px; border: 0; background: none;
  color: rgba(255, 255, 255, .7); font-size: 17px; line-height: 1; cursor: pointer; padding: 2px; }
.toast-close:hover { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast-in .25s ease; }
  @keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
}

/* ── Fil d'Ariane (pages profondes de l'espace compte) ── */
.breadcrumb { font-size: 12.5px; color: var(--text-faint); margin: 0 0 10px; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb .sep { margin: 0 6px; color: var(--rule); }

/* ── 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); }
/* « Mesure en cours » : overlay CSS pur (garanti sans JS) qui floute la page dessous
   et centre la carte d'animation. Fermable (le scan continue en fond). */
.scan-overlay { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center;
  justify-content: center; padding: 20px; overflow-y: auto;
  background: rgba(13, 58, 82, 0.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.scan-overlay-card { position: relative; background: var(--surface); border-radius: var(--radius);
  max-width: 560px; width: 100%; padding: 26px 28px; box-shadow: 0 24px 80px rgba(13, 58, 82, .3); }
.scan-overlay-close { position: absolute; top: 14px; right: 20px; border: none; background: none;
  font-size: 28px; line-height: 1; color: #fff; cursor: pointer; z-index: 1; }
.scan-overlay-close:hover { color: var(--brick-light); }
.modal-body { padding: 26px 28px; position: relative; }
.modal-body h2 { font-family: var(--font-display); font-size: var(--fs-h2); 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: var(--fs-h2); 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; }

/* Aperçu d'un badge à intégrer (modale « Affichez votre score ») */
.embed-item + .embed-item { margin-top: 4px; }
.embed-item .report-toolbar { margin-bottom: 8px; }
.embed-preview { border: 1px solid var(--rule-soft); border-radius: 8px; padding: 12px;
  background: var(--bg); overflow: auto; }
.embed-preview img, .embed-preview iframe { max-width: 100%; }
.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; }
/* Pastille score+grade — composant unique. Inline (tableaux) par défaut,
   variante .xl en colonne pour les en-têtes de fiche. */
.score-pill { display: inline-flex; align-items: baseline; gap: 5px; color: #fff;
  border-radius: 999px; padding: 3px 11px; font-family: var(--font-mono);
  font-weight: 700; font-size: 15px; line-height: 1.4; }
.score-pill .g { font-size: 11px; font-weight: 700; opacity: .85; letter-spacing: .04em; }
.score-pill.xl { flex-direction: column; align-items: center; justify-content: center;
  gap: 0; border-radius: 12px; padding: 8px 16px; min-width: 92px; font-size: 28px;
  line-height: 1; }
.score-pill.xl .g { margin-top: 3px; letter-spacing: .06em; opacity: 1; }

/* « Mes sites » : le tableau se reflow en cartes sous 640px, le badge score en ancre. */
@media (max-width: 640px) {
  .sites-table thead { display: none; }
  .sites-table, .sites-table tbody, .sites-table tr, .sites-table td { display: block; width: auto; }
  .sites-table tr { position: relative; border: 1px solid var(--rule-soft);
    border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; }
  .sites-table td { border: none; padding: 5px 0; }
  .sites-table td::before { content: attr(data-label); display: block; font-size: 11px;
    text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin-bottom: 2px; }
  .sites-table td:not([data-label])::before { content: none; }
  .sites-table td.col-cmp { display: none; }               /* comparaison = usage desktop */
  .sites-table td.col-site { padding-right: 96px; font-size: 16px; }   /* place pour le badge */
  /* Badge en ancre top-right seulement s'il y a un score ; sinon (bouton
     « Calculer ») la cellule reste dans le flux, avec son libellé « Score ». */
  .sites-table td.col-score.has-score { position: absolute; top: 14px; right: 16px; padding: 0; }
  .sites-table td.col-score.has-score::before { content: none; }
  .sites-table td.col-actions { text-align: left !important; white-space: normal;
    border-top: 1px solid var(--rule-soft); margin-top: 4px; padding-top: 10px; }
  .sites-table td.empty { text-align: center; }
}

/* ── Onglet Suivi : jauges circulaires + deltas ── */
/* Leviers prioritaires + radar côte à côte sur grand écran, empilés sinon.
   Le !important neutralise le margin-top inline des cartes incluses. */
.suivi-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  align-items: stretch; margin-top: 18px; }
.suivi-duo > .card { margin-top: 0 !important; }
@media (max-width: 1100px) { .suivi-duo { grid-template-columns: 1fr; } }
.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; }

/* Fiche publique : grande jauge du score (anneau + nombre superposé, animable) */
.score-gauge-wrap { position: relative; display: inline-grid; place-items: center; }
.score-gauge-num { position: absolute; font-family: var(--font-mono); font-weight: 700;
  font-size: 46px; line-height: 1; }
/* Grille des 6 axes en jauges */
.gauge-grid-axes { grid-template-columns: repeat(6, 1fr); }
.gauge-grid-axes .gauge-empty { width: 96px; height: 96px; border-width: 9px; }
@media (max-width: 760px) { .gauge-grid-axes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 440px) { .gauge-grid-axes { grid-template-columns: repeat(2, 1fr); } }
.gauge-rank { color: var(--text-soft); }
.gauge-pending { color: var(--brand); font-size: 30px; animation: gauge-pulse 1.2s ease-in-out infinite; }
@keyframes gauge-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Rapport : accordéon des contrôles par axe (H3 + barre de score dans le summary) */
.axis-fold { border: 1px solid var(--rule-soft); border-radius: 10px; background: var(--surface);
  margin-top: 12px; }
.axis-fold > summary { cursor: pointer; padding: 13px 46px 13px 18px; list-style: none;
  position: relative; }
.axis-fold > summary::-webkit-details-marker { display: none; }
.axis-fold > summary::after { content: "+"; position: absolute; right: 18px; top: 13px;
  font-size: 20px; font-weight: 400; color: var(--text-faint); }
.axis-fold[open] > summary::after { content: "\2212"; }
.axis-fold > summary h3 { margin: 0 0 8px; font-family: var(--font-display);
  font-size: var(--fs-h3); color: var(--brand); }
.axis-fold-bar { display: flex; align-items: center; gap: 12px; }
.axis-fold-bar .track { flex: 1; height: 8px; background: var(--rule-soft);
  border-radius: 999px; overflow: hidden; }
.axis-fold-bar .fill { display: block; height: 100%; border-radius: 999px;
  transition: width .5s ease; }
.axis-fold-bar .val { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.axis-fold-body { padding: 2px 18px 16px; border-top: 1px solid var(--rule-soft);
  padding-top: 12px; }
.axis-fold-body h4 { margin: 14px 0 0; font-size: var(--fs-small); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); }

/* Fiche : détail des mesures + contexte technique repliés (divulgation progressive) */
.fiche-detail { border: 1px solid var(--rule-soft); border-radius: 10px; background: var(--surface); }
.fiche-detail > summary { cursor: pointer; padding: 14px 46px 14px 18px; font-weight: 600;
  color: var(--brand); list-style: none; position: relative; font-family: var(--font-display); }
.fiche-detail > summary::-webkit-details-marker { display: none; }
.fiche-detail > summary::after { content: "+"; position: absolute; right: 18px; top: 11px;
  font-size: 20px; font-weight: 400; color: var(--text-faint); }
.fiche-detail[open] > summary::after { content: "\2212"; }
.fiche-detail > .grid { padding: 0 16px 16px; }
.fiche-detail .grid > .card { margin-top: 0; }
/* Colonne « contexte technique » : sous-sections fusionnées, séparées d'un filet */
.fiche-detail .sub + .sub { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.fiche-detail .sub > h2 { margin-top: 0; }

/* ── 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) ──
   Barre pleine largeur ancrée en bas de fenêtre (charte kimoun.com) : plus
   visible qu'une carte flottante centrée, pour mieux exposer le choix de
   consentement (et augmenter les acceptations explicites). */
.consent-banner {
  position: fixed; inset: auto 0 0 0; z-index: 400;
  background: var(--surface); border-top: 3px solid var(--brick);
  box-shadow: 0 -12px 32px rgba(13, 58, 82, 0.16);
  padding: 16px 20px;
}
/* Filet de sécurité : le script s'appuie sur l'attribut `hidden` pour
   masquer/afficher. Le flex vit sur `.consent-inner`, pas ici, donc `hidden`
   masque nativement — cette règle reste comme garde-fou explicite. */
.consent-banner[hidden] { display: none; }
.consent-banner .consent-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
}
.consent-banner .consent-text { flex: 1; min-width: 260px; }
.consent-banner .consent-title { margin: 0 0 3px; font-weight: 700; font-size: 15px; color: var(--text); }
.consent-banner .consent-desc { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-soft); }
.consent-banner .consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-banner .consent-actions .btn { padding: 10px 22px; font-size: 14px; }

/* 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); }
.landing-cta .reassure { color: rgba(255,255,255,.7); margin: 14px 0 0; }

/* ── Mesure en direct (fiche site pendant le crawl — vault TODO-animation) ── */
.mesure-live .ml-head { display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: 8px; margin-bottom: 10px; }
.ml-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 5px; }
.ml-steps li { font-size: 13.5px; color: var(--muted, #5A6B7D); padding-left: 24px; position: relative; }
.ml-steps li::before { content: "○"; position: absolute; left: 4px; }
.ml-steps li.current { color: var(--ink, #1A2B3C); font-weight: 600; }
.ml-steps li.current::before { content: "✻"; color: var(--brand); animation: ml-spin 1.4s linear infinite; }
.ml-steps li.done { color: var(--ink, #1A2B3C); }
.ml-steps li.done::before { content: "✓"; color: #1a7f4e; }
@keyframes ml-spin { 50% { opacity: .35; } }
.ml-terminal { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6;
  background: #0D2233; color: #B9D2E4; border-radius: 8px; padding: 10px 14px;
  min-height: 96px; max-height: 168px; overflow: hidden; }
.ml-terminal .ml-fact { color: #7FE0A7; font-weight: 700; }
.ml-card { margin: 12px 0 0; padding: 10px 14px; background: var(--brand-light);
  border-radius: 8px; font-size: 14px; transition: opacity .35s; }
.ml-card-out { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .ml-steps li.current::before { animation: none; }
  .ml-card { transition: none; }
}
@media (max-width: 640px) {
  .ml-terminal { font-size: 11.5px; max-height: 130px; }
  .ml-steps li { font-size: 13px; }
}

/* ── Espace client — « livrables » (fiche Suivi, analyses, rapport, Pack IA) ──
   N'utilise que des tokens existants. Icônes filaires (stroke currentColor). */

/* Bandeau cockpit du site (onglet Suivi) : le score prend de la présence. */
.dlv-hero {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 22px 26px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.dlv-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, .10), transparent 55%);
}
.dlv-hero-score { display: flex; align-items: center; gap: 16px; }
.dlv-hero-score .gauge { width: 104px; height: 104px; flex: none; }
.dlv-hero .overline { color: rgba(255, 255, 255, .72); }
.dlv-grade { font-family: var(--font-display); font-weight: 800; font-size: 28px;
  line-height: 1.1; letter-spacing: -.02em; }
.dlv-sub { color: rgba(255, 255, 255, .72); font-size: 12.5px; margin-top: 3px; }
.dlv-delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 600;
  font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.dlv-hero-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.btn.ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .26); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .20); text-decoration: none; }

/* Bloc « Vos livrables » : 3 cartes plutôt qu'une rangée de petits boutons. */
.dlv-head { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 12px; flex-wrap: wrap; }
.dlv-head h2 { margin: 0; font-size: var(--fs-h2); }
.dlv-head .muted { font-size: 12.5px; }
.dlv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .dlv-grid { grid-template-columns: 1fr; } }
.dlv-card {
  background: var(--surface); border: 1px solid var(--rule-soft); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 9px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dlv-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.dlv-card[aria-current="page"] { border-color: var(--brand); }
.dlv-ico { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); }
.dlv-ico svg { width: 20px; height: 20px; }
.dlv-card h3 { margin: 2px 0 0; font-size: 14.5px; font-family: var(--font-display);
  font-weight: 700; letter-spacing: -.01em; }
.dlv-card p { margin: 0; color: var(--text-soft); font-size: 12.5px; line-height: 1.5; flex: 1; }
.dlv-card .btn { align-self: flex-start; }
.dlv-tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.dlv-tag.ok { background: #D1FAE5; color: #065F46; }
.dlv-tag.wait { background: var(--brand-light); color: var(--text-soft); }

/* Table analyses : chips d'action avec icône filaire. */
.chip-act { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--brand); font-size: 12.5px; font-weight: 600; background: var(--surface); }
.chip-act:hover { background: var(--brand-light); text-decoration: none; }
.chip-act svg { width: 14px; height: 14px; }
.chip-act.is-wait { color: var(--text-faint); pointer-events: none; }

/* Pack IA : sections en cartes + volet « éditeur » pour le Markdown.
   La bascule réutilise .report-tabs / .report-tab. */
.pack-card { border: 1px solid var(--rule-soft); border-radius: var(--radius); margin-top: 12px; overflow: hidden;
  scroll-margin-top: 76px; /* ancres #section-<slug> sous la topbar sticky */ }
.pack-card > summary { list-style: none; cursor: pointer; padding: 13px 16px;
  display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pack-card > summary::-webkit-details-marker { display: none; }
.pack-card[open] > summary { border-bottom: 1px solid var(--rule-soft); }
.pack-num { width: 24px; height: 24px; flex: none; border-radius: 7px; background: var(--brand-light);
  color: var(--brand); display: grid; place-items: center; font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; }
.pack-body { padding: 14px 16px; }
/* Rangée de tête d'un volet : bascule Lisible/Markdown locale + Copier. */
.pack-toolbar { margin-bottom: 12px; }
.pack-readable :first-child { margin-top: 0; }
.pack-readable ol, .pack-readable ul { padding-left: 20px; }
.pack-editor { background: var(--brand-dark); border-radius: var(--radius-sm); overflow: hidden; }
.pack-editor .bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .10); }
.pack-editor .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.pack-editor pre { margin: 0; padding: 14px 16px; color: #E8EEF2; font-family: var(--font-mono);
  font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow: auto; max-height: 340px; }

/* ── Shell client connecté — menu déroulant enrichi + tableau de bord ── */

/* En-tête identité/plan/crédits du menu déroulant. */
.um-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--rule-soft); }
.um-org { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--text); }
.um-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.um-plan { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--brand-light); color: var(--brand); }
.um-cred { font-size: 12px; color: var(--text-soft); }
.um-cred strong { color: var(--brand); }
.user-menu-panel a.user-menu-ext { color: var(--text-soft); }

/* Tableau de bord. */
.dash-greet { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-greet h1 { margin: 0; font-family: var(--font-display); font-size: var(--fs-h1);
  letter-spacing: -.02em; color: var(--brand); }
.dash-greet .sub { color: var(--text-soft); font-size: 13px; margin-top: 2px; }
.dash-greet .spacer { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-plan { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--brand-light); color: var(--brand); font-weight: 600; font-size: 12.5px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 720px) { .dash-kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--rule-soft); border-radius: var(--radius); padding: 16px 18px; }
.kpi .v { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 28px; color: var(--brand); letter-spacing: -.02em; }
.kpi .l { display: block; color: var(--text-soft); font-size: 12px; margin-top: 2px; }
.kpi.accent .v { color: var(--brick); }
.dash-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 22px 0 0; flex-wrap: wrap; }
