/* Helvetone UI 2026 ---------------------------------------------------------
   Couche visuelle partagée. Les styles historiques des vues restent des
   fallbacks; cette feuille, chargée en dernier, porte la direction actuelle. */

:root {
  --paper: #f4f2ed;
  --paper-deep: #ebe8e0;
  --card: #fffefa;
  --ink: #151515;
  --text: #31312e;
  --muted: #68665f;
  --border: #ddd9cf;
  --border-strong: #bdb8ac;
  --swiss-red: #e30613;
  --accent: #b52520;
  --accent-ink: #8e1e1a;
  --accent-soft: #f7e8e5;

  --left: #a44363;
  --left-bg: #f6e9ee;
  --center: #676c70;
  --center-bg: #eceeed;
  --right: #315d91;
  --right-bg: #e7eef6;

  --rel-high: #26754a;
  --rel-mid: #a66d16;
  --rel-low: #ad322d;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 88px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(28, 27, 23, .05), 0 8px 24px rgba(28, 27, 23, .03);
  --shadow: 0 18px 50px rgba(28, 27, 23, .09);
  --shadow-lift: 0 22px 54px rgba(28, 27, 23, .13);
  --transition: .2s cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --max-width: 1240px;

  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-serif: var(--font-head);
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 9% 4%, rgba(227, 6, 19, .045), transparent 25rem),
    linear-gradient(180deg, #f8f7f3 0, var(--paper) 22rem, var(--paper) 100%);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(21, 21, 21, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, .018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 42rem);
}

::selection {
  color: var(--ink);
  background: #f3c7c3;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
summary,
select {
  -webkit-tap-highlight-color: transparent;
}

main {
  width: min(100%, var(--max-width));
  min-height: calc(100vh - 260px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 42px) var(--s9);
}

.page-title {
  max-width: 19ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}

.page-sub {
  max-width: 78ch;
  margin-top: var(--s3);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.55;
  text-transform: none;
}

.eyebrow,
.panel-cap {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 var(--s3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.section-title,
.sec-title {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}

/* En-tête ------------------------------------------------------------------ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  border: 0;
  border-bottom: 1px solid rgba(189, 184, 172, .65);
  background: rgba(248, 247, 243, .9);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  backdrop-filter: blur(18px) saturate(1.15);
  transition: box-shadow .25s ease, background .25s ease;
}

.masthead.is-scrolled {
  background: rgba(248, 247, 243, .96);
  box-shadow: 0 10px 30px rgba(25, 24, 21, .075);
}

.masthead-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 13px clamp(20px, 4vw, 42px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.brand-symbol {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--swiss-red);
  box-shadow: 0 7px 18px rgba(227, 6, 19, .2);
  transform: rotate(-2deg);
  transition: transform .35s var(--ease-out), border-radius .35s var(--ease-out);
}

.brand-symbol::before,
.brand-symbol::after {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 1px;
  background: #fff;
  content: "";
  transform: translate(-50%, -50%);
}

.brand-symbol::before {
  width: 17px;
  height: 6px;
}

.brand-symbol::after {
  width: 6px;
  height: 17px;
}

.brand:hover .brand-symbol {
  border-radius: 50%;
  transform: rotate(0deg) scale(1.04);
}

.brand-lockup {
  display: grid;
  gap: 0;
}

.brand-name {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}

.brand .brand-sub {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .11em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.nav-links a,
.nav-more > summary {
  position: relative;
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  transition: color var(--transition), background var(--transition);
}

.nav-links a::after {
  position: absolute;
  right: 11px;
  bottom: 5px;
  left: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--swiss-red);
  content: "";
  opacity: 0;
  transform: scaleX(.25);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-links a:hover,
.nav-more > summary:hover {
  color: var(--ink);
  background: rgba(21, 21, 21, .045);
}

.nav-links a.active {
  color: var(--ink);
  background: transparent;
}

.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-more {
  position: relative;
}

.nav-more > summary {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  cursor: pointer;
}

.nav-more > summary::-webkit-details-marker {
  display: none;
}

.nav-more > summary span {
  transition: transform var(--transition);
}

.nav-more[open] > summary span {
  transform: rotate(180deg);
}

.nav-more.has-active > summary {
  color: var(--ink);
}

.nav-secondary {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 3px;
  width: 306px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 254, 250, .98);
  box-shadow: var(--shadow);
  transform-origin: top right;
  animation: nav-pop .18s var(--ease-out) both;
}

.nav-secondary a {
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.nav-secondary a:hover,
.nav-secondary a.active {
  color: var(--ink);
  background: var(--paper);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 254, 250, .7);
}

.lang-switch a {
  display: grid;
  min-width: 29px;
  height: 28px;
  place-items: center;
  padding: 0 5px;
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.lang-switch a.on {
  color: #fff;
  background: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  background: var(--card);
  cursor: pointer;
}

.nav-toggle-label {
  font-size: 11px;
  font-weight: 700;
}

.nav-toggle-icon {
  display: grid;
  gap: 5px;
  width: 14px;
}

.nav-toggle-icon span {
  display: block;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Composants --------------------------------------------------------------- */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, .9);
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  border-radius: 11px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 7px 16px rgba(21, 21, 21, .11);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  opacity: 1;
  box-shadow: 0 12px 24px rgba(21, 21, 21, .16);
  transform: translateY(-2px);
}

.btn:active {
  box-shadow: none;
  transform: translateY(0) scale(.98);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--ink);
  background: rgba(255, 254, 250, .64);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--card);
}

.btn-danger {
  border-color: var(--accent);
  background: var(--accent);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 11px;
}

.btn-spinner {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, .38);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -1px;
  animation: btnspin .7s linear infinite;
}

.btn-ghost .btn-spinner {
  border-color: rgba(21, 21, 21, .2);
  border-top-color: var(--ink);
}

select,
input[type="text"],
input[type="search"] {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(21, 21, 21, .025);
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="search"]::placeholder,
input[type="text"]::placeholder {
  color: #85827a;
}

select:focus,
input[type="text"]:focus,
input[type="search"]:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(21, 21, 21, .07);
  outline: 0;
}

.tag,
.blindspot {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag {
  color: var(--center);
  background: var(--center-bg);
}

.tag.left {
  color: var(--left);
  background: var(--left-bg);
}

.tag.center {
  color: var(--center);
  background: var(--center-bg);
}

.tag.right {
  color: var(--right);
  background: var(--right-bg);
}

.blindspot {
  color: #765515;
  background: #f7efd9;
  box-shadow: inset 0 0 0 1px #eadcb5;
}

.blindspot.gauche {
  color: var(--left);
  background: var(--left-bg);
  box-shadow: inset 0 0 0 1px #e4cbd4;
}

.blindspot.centre {
  color: var(--center);
  background: var(--center-bg);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.blindspot.droite {
  color: var(--right);
  background: var(--right-bg);
  box-shadow: inset 0 0 0 1px #c9d7e8;
}

.lean-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.flash {
  margin-bottom: var(--s5);
  padding: 14px 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 254, 250, .88);
  font-family: var(--font-body);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.flash.success {
  border-color: #b9d7c6;
  color: #215c3c;
  background: #edf6f0;
}

.flash.error {
  border-color: #e5bcb8;
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.gauge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}

.gauge-track {
  width: 56px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.gauge-fill {
  height: 100%;
  border-radius: 999px;
}

.gauge-val {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.pmap-svg {
  display: block;
  width: 100%;
  height: auto;
}

.pmap-axis {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pmap-label {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 650;
}

.pmap-quad {
  fill: var(--muted);
  opacity: .03;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 13px 15px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-align: left;
}

tbody td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

tbody tr {
  transition: background var(--transition);
}

tbody tr:hover {
  background: rgba(255, 255, 255, .55);
}

.skip-link {
  position: fixed;
  top: var(--s2);
  left: var(--s3);
  z-index: 100;
  padding: var(--s2) var(--s3);
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-170%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  left: 0;
  top: 0;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

:focus-visible {
  outline: 3px solid rgba(181, 37, 32, .42);
  outline-offset: 3px;
  border-radius: 5px;
}

/* Accueil ------------------------------------------------------------------ */

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
  min-height: 520px;
  padding: clamp(22px, 3vw, 38px) 0 clamp(50px, 7vw, 82px);
}

.home-hero::before {
  position: absolute;
  top: 3%;
  right: 1%;
  width: min(38vw, 440px);
  aspect-ratio: 1;
  border: 1px solid rgba(181, 37, 32, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translate(0, -8%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-copy .page-title {
  max-width: 13ch;
  font-size: clamp(48px, 7.3vw, 88px);
  line-height: .91;
}

.hero-copy .page-title em {
  color: var(--accent);
  font-weight: inherit;
}

.hero-copy > p {
  max-width: 58ch;
  margin: var(--s5) 0 0;
  color: #4f4d47;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: var(--s6);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 20px;
  margin: var(--s5) 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  list-style: none;
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-proof li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rel-high);
  content: "";
  box-shadow: 0 0 0 4px rgba(38, 117, 74, .1);
}

.signal-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(21, 21, 21, .13);
  border-radius: var(--radius-lg);
  color: #f8f7f3;
  background:
    radial-gradient(circle at 100% 0, rgba(227, 6, 19, .34), transparent 14rem),
    #181817;
  box-shadow: 0 34px 80px rgba(21, 21, 21, .21);
  transform: rotate(1deg);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}

.signal-card:hover {
  box-shadow: 0 40px 88px rgba(21, 21, 21, .26);
  transform: rotate(0deg) translateY(-5px);
}

.signal-card::after {
  position: absolute;
  right: -72px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  border: 46px solid rgba(255, 255, 255, .035);
  border-radius: 50%;
  content: "";
}

.signal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(38px, 6vw, 70px);
  color: rgba(255, 255, 255, .62);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.signal-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.signal-live::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54c982;
  box-shadow: 0 0 0 5px rgba(84, 201, 130, .1);
  content: "";
  animation: live-pulse 2.4s ease-in-out infinite;
}

.signal-index {
  display: block;
  margin-bottom: var(--s3);
  color: rgba(255, 255, 255, .42);
  font-family: var(--font-mono);
  font-size: 11px;
}

.signal-title {
  position: relative;
  z-index: 1;
  max-width: 22ch;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(26px, 3.4vw, 39px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.signal-meta {
  margin-top: var(--s4);
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
}

.signal-spectrum {
  display: flex;
  height: 10px;
  margin-top: var(--s6);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

.signal-spectrum span,
.ht-bar span,
.mini-bar-fill,
.dist-track > div {
  transform-origin: left center;
}

.signal-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: rgba(255, 255, 255, .52);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.signal-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: var(--s6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.signal-link span {
  transition: transform var(--transition);
}

.signal-link:hover span {
  transform: translateX(4px);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 var(--s9);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, .66);
}

.stats-strip .stat {
  min-width: 0;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}

.stats-strip .stat:last-child {
  border-right: 0;
}

.stats-strip .stat b {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1;
}

.stats-strip .stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

.sec-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border-strong);
}

.sec-head .sec-title {
  margin: 0;
}

.sec-more {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 750;
}

.home-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: var(--s9);
}

.ht-card {
  position: relative;
  min-height: 170px;
  padding: 24px;
  overflow: hidden;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.ht-card::after {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--muted);
  content: "↗";
  font-size: 17px;
  transition: color var(--transition), transform var(--transition);
}

.ht-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.ht-card:hover::after {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.ht-index {
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.ht-label {
  max-width: 34ch;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.17;
}

.ht-meta {
  margin: var(--s3) 36px var(--s4) 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.45;
}

.ht-bar {
  display: flex;
  width: calc(100% - 40px);
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.bs-teaser {
  display: grid;
  gap: 9px;
  margin-bottom: var(--s7);
}

.bs-line {
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 13px;
  transition: border-color var(--transition), transform var(--transition);
}

.bs-line:hover {
  border-color: var(--border-strong);
  transform: translateX(3px);
}

/* Fil ---------------------------------------------------------------------- */

.feed-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 26px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-strong);
}

.feed-header .page-title {
  max-width: none;
}

.feed-header .legend {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 254, 250, .72);
}

.legend-item {
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .04em;
}

.legend-dot {
  width: 7px;
  height: 7px;
}

.feed-tabs {
  display: inline-flex;
  gap: 3px;
  margin: 0 0 var(--s5);
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 254, 250, .6);
}

.feed-tab {
  min-height: 36px;
  margin: 0;
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
}

.feed-tab.active {
  border: 0;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 5px 13px rgba(21, 21, 21, .14);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 30px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 254, 250, .72);
  box-shadow: var(--shadow-sm);
}

.filters .grow {
  flex: 1 1 260px;
  min-width: 210px;
}

.filters select {
  flex: 0 1 auto;
  max-width: 210px;
}

.topic-grid,
.publication-grid {
  display: grid;
  gap: 12px;
}

.topic-row {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 254, 250, .9);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.topic-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.topic-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px 100px;
  min-height: 148px;
  color: inherit;
}

.topic-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 22px 26px;
}

.topic-label {
  max-width: 52ch;
  margin-bottom: 11px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 650;
  letter-spacing: -.022em;
  line-height: 1.2;
}

.topic-meta {
  gap: 7px;
}

.topic-editorial-count {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.topic-sources {
  max-width: 62ch;
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
}

.topic-bars {
  gap: 9px;
  padding: 24px 20px;
  border-left: 1px solid var(--border);
  background: rgba(244, 242, 237, .35);
}

.mini-bar-row {
  gap: 7px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
}

.mini-bar-label {
  width: 14px;
}

.mini-bar-track {
  height: 7px;
  border-radius: 999px;
  background: var(--border);
}

.mini-bar-fill {
  border-radius: 999px;
}

.topic-count {
  padding: 24px 16px;
  border-left: 1px solid var(--border);
  background: rgba(235, 232, 224, .55);
}

.count-num {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -.04em;
}

.count-label {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .08em;
}

.fav-star {
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #aaa69c;
  background: transparent;
  font-size: 18px;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.fav-star:hover,
.fav-star.on {
  color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.05);
}

.publication-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  min-height: 138px;
  padding: 22px 25px;
  border-radius: 15px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.publication-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.publication-title {
  max-width: 66ch;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 650;
  letter-spacing: -.018em;
  line-height: 1.25;
}

.publication-summary {
  max-width: 80ch;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.publication-meta {
  margin-top: 11px;
  font-family: var(--font-body);
  font-size: 9px;
}

.publication-open {
  align-self: center;
  padding-right: 4px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 750;
  transition: transform var(--transition);
}

.publication-row:hover .publication-open {
  transform: translate(3px, -3px);
}

.pager,
.topic-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
}

.pager a,
.topic-pager a {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 254, 250, .7);
  font-weight: 700;
}

.empty-state {
  padding: clamp(60px, 10vw, 110px) 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 254, 250, .42);
}

.empty-icon {
  font-size: 42px;
  filter: grayscale(1);
  opacity: .42;
}

/* Détail d'un sujet -------------------------------------------------------- */

.topic-hero {
  position: relative;
  margin-bottom: 28px;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--border-strong);
}

.topic-hero .page-title {
  max-width: 21ch;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 25px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: color var(--transition), transform var(--transition);
}

.back-link:hover {
  color: var(--accent);
  transform: translateX(-3px);
}

.topic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.topic-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  gap: 16px;
  margin: 0 0 34px;
  align-items: start;
}

.topic-top > .card {
  padding: clamp(21px, 3vw, 30px) !important;
  border-radius: 17px;
}

.topic-top .panel-cap {
  margin-bottom: 22px;
}

.dist-labels {
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 10px;
}

.dist-track {
  height: 13px;
  border-radius: 999px;
  background: var(--border);
}

.topic-map-card {
  background:
    radial-gradient(circle at 100% 0, rgba(181, 37, 32, .06), transparent 14rem),
    rgba(255, 254, 250, .9);
}

.topic-map-card .pmap-svg {
  max-width: 360px;
  margin: 0 auto;
}

.map-tools {
  gap: 10px;
}

.map-note {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
}

.fav-btn {
  margin: 0;
}

.fav-btn.on {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.ai-panel {
  overflow: hidden;
  margin-bottom: 34px;
  border: 1px solid #292927;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.ai-head {
  min-height: 56px;
  padding: 13px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 90% -90%, rgba(227, 6, 19, .55), transparent 16rem),
    #1a1a19;
}

.ai-head-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
}

.ai-head-note {
  margin-left: auto;
  color: rgba(255, 255, 255, .56);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .03em;
}

.ai-body {
  padding: clamp(20px, 3vw, 30px);
}

.tension-box {
  margin-bottom: 13px;
  padding: 15px 17px;
  border: 0;
  border-left: 3px solid var(--rel-mid);
  border-radius: 10px;
  color: var(--text);
  background: #f8f0dd;
  font-size: 13px;
}

.ai-cap {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .07em;
}

.synth-grid {
  gap: 10px;
  margin-bottom: 16px;
}

.synth-col {
  padding: 15px;
  border: 0;
  border-top: 3px solid;
  border-radius: 11px;
}

.synth-label {
  font-family: var(--font-body);
  font-size: 9px;
}

.synth-text {
  font-size: 12px;
  line-height: 1.58;
}

.ai-tag,
.ai-angle {
  border-radius: 999px;
  font-family: var(--font-body);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  align-items: start;
}

.articles-grid > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 254, 250, .7);
}

.col-head {
  gap: 9px;
  margin-bottom: 15px;
  padding-bottom: 13px;
  border-bottom-width: 2px;
}

.col-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 650;
}

.col-count {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 9px;
}

.article-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.article-title {
  margin-bottom: 9px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.014em;
  line-height: 1.36;
  transition: color var(--transition);
}

.article-title:hover {
  color: var(--accent);
}

.article-meta {
  gap: 7px;
}

.article-date,
.ai-why {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 9px;
}

.no-articles {
  color: var(--muted);
  font-size: 12px;
}

/* Pages secondaires -------------------------------------------------------- */

.coverage,
.stats-grid,
.vote-grid,
.compass-grid {
  gap: 13px;
}

.archive-hero,
.clusters-hero,
.speech-hero,
.detail-head,
.cluster-head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-strong);
}

.archive-card,
.cluster-card,
.doc-card,
.speech-card,
.vote-card,
.m-section,
.cov {
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.archive-card:hover,
.cluster-card:hover,
.doc-card:hover,
.speech-card:hover,
.vote-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.archive-title,
.cluster-title,
.doc-title,
.speech-title,
.detail-title {
  color: var(--ink);
  font-weight: 650;
}

.archive-filters,
.cluster-filters,
.speech-filters {
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 254, 250, .72);
  box-shadow: var(--shadow-sm);
}

.stat-chip,
.badge {
  border-color: var(--border);
  border-radius: 10px;
  background: rgba(255, 254, 250, .76);
}

.coverage .card,
.stats-grid .card,
.vote-card {
  border-radius: 15px;
}

details.card > summary {
  color: var(--ink);
}

/* Pied de page ------------------------------------------------------------- */

.site-footer {
  margin-top: var(--s8);
  border-top: 1px solid var(--border);
  background: #eae7df;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3) var(--s4);
  width: min(100%, var(--max-width));
  max-width: none;
  margin: 0 auto;
  padding: 26px clamp(20px, 4vw, 42px);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-mark {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--swiss-red);
}

.footer-mark::before,
.footer-mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 1px;
  background: #fff;
  content: "";
  transform: translate(-50%, -50%);
}

.footer-mark::before {
  width: 9px;
  height: 3px;
}

.footer-mark::after {
  width: 3px;
  height: 9px;
}

.site-footer .foot-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  border: 0;
  color: var(--ink);
  font-weight: 650;
}

.site-footer a:hover {
  color: var(--accent);
}

/* Mouvement ---------------------------------------------------------------- */

.motion-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .58s var(--ease-out), transform .58s var(--ease-out);
  transition-delay: var(--motion-delay, 0ms);
}

.motion-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.meter-motion {
  transform: scaleX(0);
  transition: transform .82s var(--ease-out);
  transition-delay: var(--meter-delay, 80ms);
}

.meter-motion.is-visible {
  transform: scaleX(1);
}

@keyframes nav-pop {
  from { opacity: 0; transform: translateY(-5px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(84, 201, 130, .09); }
  50% { box-shadow: 0 0 0 8px rgba(84, 201, 130, .02); }
}

@keyframes btnspin {
  to { transform: rotate(360deg); }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: .14s ease both fade-out;
}

::view-transition-new(root) {
  animation: .28s var(--ease-out) both fade-in;
}

@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
}

.feed-extra-filters { flex: 1 0 100%; min-width: 0; }
.feed-extra-filters summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.feed-filter-fields { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
.feed-filter-fields select { flex: 1 1 150px; min-width: 0; }
.vaa-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 72px; z-index: 3; background: var(--card); border: 1px solid var(--border); padding: 10px 14px; font-size: 13px; }
[role="region"][tabindex="0"] { position: relative; }
.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 24px 0; }

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1080px) {
  .masthead-inner {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    justify-self: start;
  }

  .nav-enhanced .nav-toggle {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
  }

  .lang-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .nav-shell {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: stretch;
    padding: 10px 0 3px;
    border-top: 1px solid var(--border);
  }

  .nav-shell.is-open {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    animation: nav-pop .2s var(--ease-out) both;
  }

  .nav-enhanced .nav-shell:not(.is-open) { display: none; }

  .nav-links {
    flex-wrap: wrap;
  }

  .nav-more {
    align-self: start;
  }

  .nav-secondary {
    right: 0;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    gap: 38px;
  }

  .hero-copy .page-title {
    font-size: clamp(46px, 7vw, 70px);
  }

  .topic-link {
    grid-template-columns: minmax(0, 1fr) 180px 86px;
  }

  .articles-grid {
    gap: 9px;
  }

  .articles-grid > div {
    padding: 14px;
  }
}

@media (max-width: 820px) {
  main {
    padding-top: 38px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 20px;
  }

  .home-hero::before {
    display: none;
  }

  .signal-card {
    width: min(100%, 560px);
    transform: none;
  }

  .signal-card:hover {
    transform: translateY(-3px);
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip .stat:nth-child(2) {
    border-right: 0;
  }

  .stats-strip .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .feed-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .feed-header .legend {
    justify-self: start;
  }

  .topic-link {
    grid-template-columns: minmax(0, 1fr) 170px;
  }

  .topic-count {
    display: none;
  }

  .topic-top,
  .articles-grid,
  .synth-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid > div {
    padding: 18px;
  }
}

@media (max-width: 620px) {
  .masthead-inner {
    padding: 10px 16px;
  }

  .brand-symbol {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand .brand-sub {
    display: none;
  }

  .lang-switch {
    display: none;
  }

  .masthead-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    grid-column: 2;
  }

  .nav-shell {
    grid-column: 1 / -1;
  }

  .nav-shell.is-open {
    grid-template-columns: 1fr;
  }

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

  .nav-links a {
    min-height: 42px;
    padding: 11px 12px;
  }

  .nav-more {
    width: 100%;
  }

  .nav-more > summary {
    min-height: 42px;
  }

  .nav-secondary {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
    transform-origin: top;
  }

  main {
    padding: 32px 16px 68px;
  }

  .page-title {
    font-size: clamp(34px, 12vw, 50px);
  }

  .hero-copy .page-title {
    font-size: clamp(46px, 15.5vw, 67px);
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .signal-card {
    padding: 23px;
    border-radius: 18px;
  }

  .signal-head {
    margin-bottom: 38px;
  }

  .home-topics {
    grid-template-columns: 1fr;
  }

  .ht-card {
    min-height: 156px;
    padding: 20px;
  }

  .bs-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .bs-line > span:last-child {
    margin-left: 0 !important;
  }

  .feed-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .feed-tab {
    display: grid;
    place-items: center;
    text-align: center;
  }

  .filters {
    padding: 11px;
  }

  .filters > * {
    width: 100%;
    max-width: none !important;
  }

  .topic-link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .topic-main {
    padding: 22px 20px 18px;
  }

  .topic-bars {
    min-height: 76px;
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .fav-star {
    top: 8px;
    right: 8px;
  }

  .topic-label {
    padding-right: 27px;
  }

  .publication-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .publication-open {
    justify-self: start;
  }

  .topic-hero {
    padding-bottom: 24px;
  }

  .topic-actions .btn {
    width: 100%;
  }

  .topic-top > .card {
    padding: 20px !important;
  }

  .dist-labels {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .motion-item,
  .meter-motion {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .brand-symbol,
  .footer-mark,
  .legend-dot,
  .signal-live::before {
    forced-color-adjust: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::after,
  .nav-toggle,
  .hero-cta,
  .topic-actions,
  .site-footer {
    display: none !important;
  }

  .masthead {
    position: static;
    box-shadow: none;
  }

  .motion-item,
  .meter-motion {
    opacity: 1 !important;
    transform: none !important;
  }
}
