/* =====================================================================
 * Semtopic — gabarit commun à toutes les pages
 *   En-tête et navigation · pied de page · page d'accueil · en-tête des
 *   outils (Topic, RankMap) · pages légales.
 * Complète styles.css (DA Nature) : mêmes jetons, mêmes composants.
 * ===================================================================== */

.page-landing, .page-result, .page-body { position: relative; }

/* ===================== En-tête commun ===================== */
.site-top { flex-wrap: wrap; row-gap: 12px; }
.topbar .site-nav { display: flex; align-items: center; gap: 4px; }
.topbar .site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 16px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--sapin);
  white-space: nowrap;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}
.topbar .site-nav a:hover { background: var(--neige-2); color: var(--sapin); }
.topbar .site-nav a[aria-current="page"] {
  box-shadow: inset 0 0 0 var(--hair) var(--sapin);
  background: var(--neige);
}

/* Logo sur fond Sapin : Neige + Mousse */
.brand-on-dark { color: var(--neige); }
.brand-on-dark .brand-mark .peak { background: var(--neige); }
.brand-on-dark .brand-mark .snow { background: var(--c1); }
.brand-on-dark .brand-name { color: var(--neige); }
.brand-on-dark:hover { color: var(--neige); }

/* ===================== Pied de page commun ===================== */
.site-footer { background: var(--papier); color: #c9d0bd; }
.foot-crest { position: relative; height: 110px; overflow: hidden; }
.foot-crest .layer { position: absolute; inset: 0; }
.foot-crest .l1 {
  background: oklch(0.88 0.04 200);
  clip-path: polygon(0 62%, 11% 38%, 21% 54%, 33% 22%, 45% 50%, 56% 30%,
                     67% 52%, 78% 18%, 89% 44%, 100% 30%, 100% 100%, 0 100%);
}
.foot-crest .l2 {
  background: oklch(0.55 0.10 150);
  clip-path: polygon(0 76%, 13% 56%, 25% 72%, 38% 46%, 50% 68%, 62% 52%,
                     74% 74%, 86% 50%, 100% 66%, 100% 100%, 0 100%);
}
.foot-crest .l3 {
  background: var(--sapin);
  clip-path: polygon(0 90%, 15% 76%, 28% 88%, 42% 72%, 55% 86%, 69% 74%,
                     82% 90%, 93% 78%, 100% 86%, 100% 100%, 0 100%);
}
.foot-inner {
  background: var(--sapin);
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  padding: 24px var(--gx) 36px;
}
.foot-brand p {
  margin: 16px 0 0; max-width: 300px;
  font-family: var(--f-serif); font-size: 22px; line-height: 1.2; color: #eef0e4;
}
.foot-col { display: flex; flex-direction: column; }
.foot-title {
  margin: 0 0 6px; font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c1-tint);
}
.foot-col a {
  display: flex; align-items: center; min-height: 40px;
  color: #dfe4d5; text-decoration: none; font-size: 15px; line-height: 1.3;
}
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-base {
  background: var(--sapin);
  display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  padding: 18px var(--gx) 24px;
  border-top: 1px solid rgba(238, 240, 228, 0.16);
  font-family: var(--f-mono); font-size: 13px; color: #c9d0bd;
}

/* ===================== Éléments communs ===================== */
.section {
  padding: 72px var(--gx);
  position: relative;
}
.section-dark { background: var(--sapin); color: #eef0e4; }
.section-head { max-width: 820px; margin-bottom: 36px; }
.section-head .eyebrow { margin-bottom: 16px; }
.h2 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(30px, 3.8vw, 48px); line-height: 1.05;
  letter-spacing: -0.03em; margin: 0; text-wrap: balance;
}
.section-lead {
  margin: 18px 0 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55;
  color: #3f5446; max-width: 700px; text-wrap: pretty;
}
.section-dark .section-lead { color: #c9d0bd; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 700; color: var(--sapin); text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}

/* ===================== Accueil ===================== */
.home-hero .hero-grid { align-items: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas .btn-primary { padding: 16px 28px; font-size: 17px; }
.hero-ctas .btn-outline { padding: 15px 26px; font-size: 16px; }

/* Vidéo de présentation, à droite du titre */
.home-hero .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; }
.hero-video { margin: 0; min-width: 0; }
.hero-video-frame { position: relative; }
.hero-video video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border-radius: var(--r-card-sm); border: var(--hair) solid var(--pierre);
  background: var(--papier);
}
.hero-video-sound {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 10px 18px 10px 14px; border-radius: var(--r-pill);
  border: var(--hair) solid var(--sapin); background: var(--neige); color: var(--sapin);
  font: 600 15px/1 var(--f-sans); cursor: pointer;
}
.hero-video-sound:hover { background: var(--papier); }
.hero-video-sound.is-raised { bottom: 64px; }
.home-hero .hero-title { font-size: clamp(34px, 3.7vw, 52px); }
.home-hero .hero-title .hl { white-space: nowrap; }
.home-hero .hero-figures { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.report-group-wide { grid-column: 1 / -1; }
.report-group.report-group-wide dl > div { grid-template-columns: 238px minmax(0, 1fr); }
.hero-video-sound:focus-visible { outline: 2px solid var(--sapin); outline-offset: 3px; }
.hero-video-sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-video-sound svg .spk { fill: currentColor; }
.hero-video-cap { margin-top: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--granit); }

.hero-figures {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px; margin-top: 48px; padding-top: 24px;
  border-top: var(--hair) dashed var(--pierre-2);
  position: relative;
}
.hero-figures div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-figures b {
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.03em; line-height: 1;
}
.hero-figures span { font-size: 14px; color: var(--granit); line-height: 1.35; }

/* 4 signaux */
.signals-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.signal {
  border-radius: var(--r-card); padding: 28px 28px 30px;
  display: flex; flex-direction: column; gap: 10px; min-height: 300px;
}
.signal .n { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; }
.signal h3 {
  font-family: var(--f-serif); font-weight: 400; font-size: 26px; line-height: 1.1;
  margin: 2px 0 0;
}
.signal p { margin: 0; font-size: 15px; line-height: 1.5; }
.signal .gets {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed currentColor;
  font-family: var(--f-mono); font-size: 12.5px; line-height: 1.45;
}
.signal-1 { background: var(--c1); color: #f7f6ee; }
.signal-2 { background: var(--papier); color: var(--sapin); }
.signal-2 p { color: #3f5446; }
.signal-3 { background: var(--c2); color: var(--sapin); }
.signal-4 { background: var(--c3); color: var(--sapin); }
.signals-note {
  margin: 28px 0 0; font-family: var(--f-mono); font-size: 13px; color: #c9d0bd;
  line-height: 1.5; max-width: 820px;
}

/* 3 outils */
.tools-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.tool-card {
  background: var(--neige); border: var(--hair) solid var(--pierre);
  border-radius: var(--r-card); padding: 32px 32px 28px;
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.tool-card .n {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--granit);
}
.tool-card h3 {
  font-family: var(--f-serif); font-weight: 400; font-size: 32px; line-height: 1.05;
  letter-spacing: -0.02em; margin: 0;
}
.tool-card > p { margin: 0; font-size: 16px; line-height: 1.55; color: #3f5446; }
.tool-card ul {
  list-style: none; margin: 4px 0 0; padding: 0;
  font-size: 15px;
}
.tool-card li {
  display: flex; gap: 10px; align-items: baseline;
  padding: 9px 0; border-top: 1px dashed var(--pierre);
}
.tool-card li::before {
  content: ""; flex-shrink: 0; width: 9px; height: 8px; background: var(--sapin);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateY(-1px);
}
.tool-card .btn-outline { align-self: flex-start; margin-top: auto; }
.tool-viz {
  height: 150px; border-radius: 18px; background: var(--papier);
  position: relative; overflow: hidden;
  border: var(--hair) solid var(--neige-2);
}
/* Mini-relief (Audit) */
.viz-peaks {
  position: absolute; left: 18px; right: 18px; bottom: 0; height: 110px;
  display: flex; align-items: flex-end; gap: 4px;
  border-bottom: var(--hair) solid var(--sapin);
}
.viz-peaks span { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
/* Jauges (Topic) */
.viz-gauges {
  position: absolute; inset: 20px 22px; display: flex; flex-direction: column;
  justify-content: center; gap: 12px;
}
.viz-gauges div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; }
.viz-gauges small { font-family: var(--f-mono); font-size: 11px; color: var(--granit); }
.viz-gauges i { display: block; height: 8px; border-radius: var(--r-pill); background: var(--rail); overflow: hidden; }
.viz-gauges i b { display: block; height: 100%; border-radius: var(--r-pill); }
/* Mini-carte (RankMap) */
.viz-map { position: absolute; inset: 8px; display: grid; place-items: center; }
.viz-map svg { height: 100%; width: auto; max-width: 100%; }
.viz-map .dep { fill: var(--neige-2); stroke: var(--pierre-2); stroke-width: 1.4; }
.viz-map .dot { stroke: var(--neige); stroke-width: 3; }

/* Contenu d'un audit */
.report-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
}
.report-group {
  background: var(--neige); border: var(--hair) solid var(--pierre);
  border-radius: var(--r-card); padding: 30px 34px;
}
.report-group-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: 8px;
}
.report-group h3 {
  font-family: var(--f-serif); font-weight: 400; font-size: 26px; margin: 0; line-height: 1.1;
}
.report-group .count { font-family: var(--f-mono); font-size: 13px; color: var(--granit); white-space: nowrap; }
.report-group dl { margin: 0; }
.report-group dl > div {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 16px; padding: 12px 0; border-top: 1px dashed var(--pierre);
}
.report-group dl > div:first-child { border-top: 0; }
.report-group dt { font-weight: 700; font-size: 15px; }
.report-group dd { margin: 0; font-size: 15px; color: #3f5446; line-height: 1.45; }

/* Étapes */
.steps-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  counter-reset: step;
}
.step-card {
  border-top: var(--hair) solid var(--sapin); padding: 22px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.step-card .num {
  font-family: var(--f-serif); font-size: 44px; line-height: 1; color: var(--c1);
  letter-spacing: -0.03em;
}
.step-card h3 { font-family: var(--f-serif); font-weight: 400; font-size: 24px; margin: 0; line-height: 1.15; }
.step-card p { margin: 0; font-size: 16px; color: #3f5446; line-height: 1.55; }

/* Principes */
.principles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
}
.principle {
  border-radius: var(--r-card); padding: 30px 34px;
  background: rgba(238, 240, 228, 0.06);
  border: var(--hair) solid rgba(238, 240, 228, 0.18);
}
.principle h3 {
  font-family: var(--f-serif); font-weight: 400; font-size: 24px; margin: 0 0 10px;
  line-height: 1.15; color: #eef0e4;
}
.principle p { margin: 0; font-size: 16px; line-height: 1.6; color: #c9d0bd; }
.principle q { color: var(--c1-tint); quotes: "\00ab\00a0" "\00a0\00bb"; }

/* Cas d'usage */
.uses {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px;
}
.use {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 0; border-top: var(--hair) dashed var(--pierre-2);
}
.use h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.use p { margin: 0; font-size: 15px; color: #3f5446; line-height: 1.5; }
.use a {
  align-self: flex-start; font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  color: var(--sapin); text-underline-offset: 3px;
  display: inline-flex; align-items: center; min-height: 32px;
}

/* FAQ */
.faq-list { max-width: 900px; display: flex; flex-direction: column; }
.faq-list details { border-top: var(--hair) solid var(--pierre); }
.faq-list details:last-child { border-bottom: var(--hair) solid var(--pierre); }
.faq-list summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 64px; padding: 14px 0;
  font-family: var(--f-serif); font-size: 21px; line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex-shrink: 0; width: 14px; height: 12px; background: var(--sapin);
  clip-path: polygon(50% 100%, 100% 0, 0 0);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-list details p {
  margin: 0 0 20px; max-width: 760px; font-size: 16px; line-height: 1.6; color: #3f5446;
}

/* Appel final */
.final-cta {
  text-align: center; padding: 88px var(--gx) 40px;
  position: relative; overflow: hidden;
}
.final-cta .pattern {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(ellipse 70% 60% at 50% 120%,
    transparent 0 30px, rgba(29, 51, 39, 0.06) 30px 31.5px);
}
.final-cta > *:not(.pattern) { position: relative; }
.final-cta .h2 { max-width: 760px; margin: 0 auto; font-size: clamp(34px, 4.6vw, 60px); }
.final-cta p { margin: 18px auto 0; max-width: 560px; color: #3f5446; font-size: 17px; }
.final-cta .hero-ctas { justify-content: center; }

/* Bandeau « autres outils » (audit) */
.cross-tools {
  display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
  gap: 24px; align-items: stretch;
  padding: 48px var(--gx) 24px;
}
.cross-tools .intro p { margin: 10px 0 0; color: #3f5446; font-size: 16px; line-height: 1.5; }
.cross-tools .h3 {
  font-family: var(--f-serif); font-weight: 400; font-size: 28px; margin: 12px 0 0; line-height: 1.1;
}
.cross-link {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--neige); border: var(--hair) solid var(--pierre);
  border-radius: var(--r-card-sm); padding: 22px 24px;
  text-decoration: none; color: var(--sapin);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.cross-link:hover { border-color: var(--sapin); color: var(--sapin); transform: translateY(-2px); }
.cross-link b { font-family: var(--f-serif); font-weight: 400; font-size: 24px; }
.cross-link span { font-size: 15px; color: #3f5446; line-height: 1.45; }
.cross-link em {
  margin-top: auto; padding-top: 6px; font-style: normal;
  font-family: var(--f-mono); font-size: 13px; color: var(--granit);
}

/* ===================== En-tête des outils (Topic, RankMap) ===================== */
.tool-hero { position: relative; padding: 24px var(--gx) 0; }
.tool-hero .hero-pattern-tool {
  position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none;
  background:
    repeating-radial-gradient(ellipse 110% 90% at 92% 10%,
      transparent 0 30px, rgba(29, 51, 39, 0.07) 30px 31.5px);
}
.tool-hero > *:not(.hero-pattern-tool) { position: relative; }
.tool-hero .hero-title { font-size: clamp(36px, 4.6vw, 64px); max-width: 980px; }
.tool-hero .hero-lead { max-width: 720px; }
.tool-hero .search-row { padding-top: 28px; }
.tool-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin: 36px 0 0; padding: 22px 0 0; border-top: var(--hair) dashed var(--pierre-2);
}
.tool-facts div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tool-facts .k {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--granit);
}
.tool-facts p { margin: 0; font-size: 15px; line-height: 1.5; color: #3f5446; }
.tool-hero .crest { height: 150px; margin-top: 24px; }

.tool-result { scroll-margin-top: 16px; }
.tool-result .result-body { padding-top: 8px; }
.tool-status { margin-top: 0; }

/* Suite de lecture (liens vers les autres outils pour le même domaine) */
.next-steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 24px 28px; border-radius: var(--r-card);
  border: var(--hair) dashed var(--pierre-2);
}
.next-steps p { margin: 0; flex: 1 1 260px; font-size: 16px; color: #3f5446; }
.next-steps p b { color: var(--sapin); }

/* ===================== Pages légales ===================== */
.legal-main {
  max-width: 860px; margin: 0 auto;
  padding: 24px clamp(24px, 5vw, 56px) 72px;
}
.legal-main h1 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 16px 0 0; text-wrap: balance;
}
.legal-meta {
  margin: 18px 0 40px; font-family: var(--f-mono); font-size: 13px; color: var(--granit);
}
.legal-main h2 {
  font-family: var(--f-serif); font-weight: 400; font-size: 26px; line-height: 1.15;
  margin: 44px 0 14px; padding-top: 22px; border-top: var(--hair) dashed var(--pierre-2);
}
.legal-main h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.legal-main p, .legal-main li { font-size: 16px; line-height: 1.65; color: var(--sapin); }
.legal-main p { margin: 0 0 14px; }
.legal-main ul { margin: 0 0 14px; padding-left: 22px; }
.legal-main li { margin: 4px 0; }
.legal-main a { font-weight: 600; }
.legal-card {
  background: var(--neige); border: var(--hair) solid var(--pierre);
  border-radius: var(--r-card-sm); padding: 22px 26px; margin: 0 0 16px;
}
.legal-card p:last-child { margin-bottom: 0; }
.legal-card .k {
  display: block; margin-bottom: 6px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--granit);
}
.legal-table-wrap { overflow-x: auto; margin: 0 0 16px; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.legal-table th {
  text-align: left; font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--granit);
  padding: 8px 12px 10px 0; border-bottom: var(--hair) solid var(--sapin);
}
.legal-table td {
  padding: 12px 12px 12px 0; vertical-align: top; line-height: 1.5;
  border-bottom: 1px dashed var(--pierre);
}

/* ===================== Responsive ===================== */
@media (max-width: 1180px) {
  .signals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
  .tool-card .tool-viz { grid-column: 2; grid-row: 1 / span 5; height: 100%; min-height: 220px; }
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .home-hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-figures, .home-hero .hero-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-grid, .principles { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .cross-tools { grid-template-columns: 1fr 1fr; }
  .cross-tools .intro { grid-column: 1 / -1; }
  .tool-facts { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 820px) {
  .site-top { padding-bottom: 8px; }
  .topbar .site-nav {
    flex-basis: 100%; order: 3; gap: 2px;
    overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 4px;
  }
  .topbar .site-nav::-webkit-scrollbar { display: none; }
  .topbar .site-nav { margin: 0 -10px; padding: 0; justify-content: space-between; }
  .topbar .site-nav a { padding: 0 8px; font-size: 14px; }
  .section { padding: 48px 20px; }
  .signals-grid { grid-template-columns: 1fr; }
  .signal { min-height: 0; }
  .tool-card { display: flex; padding: 24px 20px; }
  .tool-card .tool-viz { height: 150px; min-height: 0; }
  .tool-card h3 { font-size: 28px; }
  .report-group { padding: 24px 20px; }
  .report-group dl > div, .report-group.report-group-wide dl > div { grid-template-columns: 1fr; gap: 4px; }
  .principle { padding: 24px 20px; }
  .uses { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 18px; }
  .final-cta { padding: 56px 20px 24px; }
  .foot-inner { grid-template-columns: 1fr 1fr; padding: 16px 20px 28px; }
  .foot-base { padding: 16px 20px 20px; }
  .foot-crest { height: 70px; }
  .cross-tools { grid-template-columns: 1fr; padding: 32px 20px 16px; }
  .tool-hero { padding: 16px 20px 0; }
  .tool-hero .crest { height: 80px; }
  .legal-main { padding: 16px 20px 48px; }
  .legal-card { padding: 18px 18px; }
  .next-steps { padding: 20px; }
}
@media (max-width: 480px) {
  .hero-figures { gap: 18px; }
  .hero-ctas .btn { width: 100%; }
  .foot-inner { grid-template-columns: 1fr; }
}

/* Audit : contenu en quatre familles */
.deliverables-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.deliv-4 { background: var(--c3); color: var(--sapin); }
@media (max-width: 1180px) { .deliverables-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .deliverables-grid.four { grid-template-columns: 1fr; } }

/* Topic global (Topic) */
.topic-global .tg-read { font-size: 17px; margin-bottom: 22px; max-width: 900px; }
.tg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tg-col {
  background: var(--papier); border-radius: var(--r-card-sm);
  padding: 22px 24px; min-width: 0;
}
.tg-col h4 {
  margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: 22px; line-height: 1.15;
}
.tg-src { margin: 4px 0 14px; font-family: var(--f-mono); font-size: 12.5px; color: var(--granit); }
.tg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tg-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tg-name { font-weight: 700; font-size: 16px; }
.tg-val { font-family: var(--f-serif); font-size: 20px; white-space: nowrap; }
.tg-bar { display: block; height: 8px; margin-top: 6px; border-radius: var(--r-pill); background: var(--rail); overflow: hidden; }
.tg-bar > span { display: block; height: 100%; border-radius: var(--r-pill); }
.tg-meta { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--granit); }
.tg-sub { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: #3f5446; }
@media (max-width: 820px) {
  .tg-grid { grid-template-columns: 1fr; }
  .tg-col { padding: 18px; }
}

/* Audit sur mobile : les filtres de position et les longues catégories
   Wikipédia passent à la ligne au lieu de sortir de l'écran. */
@media (max-width: 820px) {
  .trails-head .tabs { flex-wrap: wrap; border-radius: 22px; }
  .wiki-cats .chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
}
