@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/SpaceGrotesk-Variable.ttf') format('truetype-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/JetBrainsMono-Variable.ttf') format('truetype-variations');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Montserrat-Variable.ttf') format('truetype-variations');
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ChakraPetch-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ChakraPetch-Bold.woff2') format('woff2');
}

/* ══════════════════════════════════════════════════
   DESIGN TOKENS — WatchMe v4 (Dark Mode)
   Palette : Noir/gris neutre (terminal) / Jaune signal unique / Rouge en touche
   Pivot éditorial N/B — un seul accent chromatique (jaune), rouge en rare touche
   ══════════════════════════════════════════════════ */
:root {
  /* Neutres gris (base dark, ex-bleu nuit — noms conservés, valeurs neutralisées) */
  --navy-1000: #060606;   /* Carbon — fond canvas */
  --navy-950:  #0a0a0a;   /* Void — recoins profonds */
  --navy-900:  #1f1f1f;   /* Onyx — surface carte */
  --navy-850:  #232323;
  --navy-800:  #252525;   /* Graphite — nav, panneaux surélevés */
  --navy-700:  #313131;   /* Iron — hover, élévation */
  --navy-600:  #3d3d3d;   /* Slate — bordures denses */

  /* Jaune vibrant & extraverti */
  --yellow-700: #B87800;
  --yellow-600: #E09500;
  --yellow-500: #FFB627;   /* plus lumineux, plus extraverti */
  --yellow-400: #FFC94A;
  --yellow-300: #FFD970;
  --yellow-200: #FFE59E;
  --yellow-100: #FFF0C8;
  --yellow-50:  #FFF8E6;

  /* Vert — extrait de la photo hero (hero-scan.webp, teinte ~135deg), accent alterné une section sur deux */
  --green-700: #1F5C34;
  --green-600: #2C7A44;
  --green-500: #3FA85C;
  --green-400: #5CC278;
  --green-300: #86D9A0;
  --green-200: #B8ECC7;
  --green-100: #DFF7E6;

  /* Neutres dark (pas de noir 100%) */
  --bg:         var(--navy-1000);
  --bg-soft:    var(--navy-950);
  --surface:    var(--navy-900);
  --surface-alt:var(--navy-850);
  --surface-hi: var(--navy-800);
  --border:          rgba(240, 240, 240, 0.08);
  --border-strong:   rgba(240, 240, 240, 0.16);
  --border-accent:   rgba(255, 182, 39, 0.32);

  /* Encres neutres (ex-crème/bleuté — passées en gris neutre, cf. pivot N/B) */
  --ink:        #F0F0F0;    /* Chalk — texte principal, = --bw-white */
  --ink-2:      #C5C5C5;    /* Pearl — texte secondaire */
  --ink-muted:  #8A8A8A;    /* Ash — texte tertiaire, helper */
  --ink-light:  #6E6E6E;    /* Fog — texte le plus discret */

  /* ═══ Tags — monochrome, seul le jaune sert d'accent (hover/actif) ═══
     Chaque tag garde 3 tokens : -bg (fond translucide), -fg (texte), -solid (accent hover/actif) */

  --tag-free-bg:    rgba(240, 240, 240, 0.15);
  --tag-free-fg:    var(--ink-2);
  --tag-free-solid: var(--yellow-500);

  --tag-paid-bg:    rgba(240, 240, 240, 0.15);
  --tag-paid-fg:    var(--ink-2);
  --tag-paid-solid: var(--yellow-500);

  --tag-tool-bg:    rgba(240, 240, 240, 0.15);
  --tag-tool-fg:    var(--ink-2);
  --tag-tool-solid: var(--yellow-500);

  --tag-fr-bg:      rgba(240, 240, 240, 0.15);
  --tag-fr-fg:      var(--ink-2);
  --tag-fr-solid:   var(--yellow-500);

  --tag-youtube-bg: rgba(240, 240, 240, 0.15);
  --tag-youtube-fg: var(--ink-2);
  --tag-youtube-solid: var(--yellow-500);

  --tag-ai-bg:      rgba(240, 240, 240, 0.15);
  --tag-ai-fg:      var(--ink-2);
  --tag-ai-solid:   var(--yellow-500);

  --tag-cyber-bg:   rgba(240, 240, 240, 0.15);
  --tag-cyber-fg:   var(--ink-2);
  --tag-cyber-solid:var(--yellow-500);

  --tag-osint-bg:   rgba(240, 240, 240, 0.15);
  --tag-osint-fg:   var(--ink-2);
  --tag-osint-solid:var(--yellow-500);

  --tag-privacy-bg: rgba(240, 240, 240, 0.15);
  --tag-privacy-fg: var(--ink-2);
  --tag-privacy-solid:var(--yellow-500);

  --tag-learning-bg: rgba(240, 240, 240, 0.15);
  --tag-learning-fg: var(--ink-2);
  --tag-learning-solid:var(--yellow-500);

  /* Rayons */
  --r-sm: 2px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 2px;

  /* Ombres dark mode */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.35);

  /* Fonts */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  /* Identité HUD — pivot N/B + glitch, réservé hero + header pour l'instant */
  --font-hud: 'Chakra Petch', var(--font-display);
  --bw-black: #0a0a0a;
  --bw-white: #f0f0f0;

  /* Layout */
  --gutter: clamp(28px, 6vw, 96px);
  --radius-card: 0px; /* sharp — signature éditoriale du pivot N/B */

  /* Transitions */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: .15s var(--ease);
  --t-base: .25s var(--ease);
  --t-slow: .4s var(--ease);
  --t-section: .9s var(--ease-out-soft);
}

/* ══════════════════════════════════════════════════
   RESET + BASE
   ══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Background layer — grille monochrome + vignette.
   Deux couches : .bg-pattern (wrapper, transform piloté par le scroll en JS,
   parallaxe inverse) > .bg-pattern-inner (motif, dérive en boucle CSS).
   Remplace l'ancien glow multicolore (turquoise/orange/rouge), hors design system. */
.bg-pattern {
  position: fixed;
  inset: -60px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}
/* Double grille — fines cellules 40px + lignes marquées tous les 6 (240px), accent vert. */
.bg-pattern-inner {
  position: absolute;
  inset: -40px;
  will-change: transform;
  background-color: var(--navy-1000);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 39px,
      rgba(63, 168, 92, 0.10) 39px, rgba(63, 168, 92, 0.10) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent, transparent 39px,
      rgba(63, 168, 92, 0.10) 39px, rgba(63, 168, 92, 0.10) 40px
    ),
    repeating-linear-gradient(
      0deg,
      transparent, transparent 239px,
      rgba(63, 168, 92, 0.32) 239px, rgba(63, 168, 92, 0.32) 240px
    ),
    repeating-linear-gradient(
      90deg,
      transparent, transparent 239px,
      rgba(63, 168, 92, 0.32) 239px, rgba(63, 168, 92, 0.32) 240px
    );
  background-size: 40px 40px, 40px 40px, 240px 240px, 240px 240px;
}

/* Grain fin — texture terminal, statique */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.025 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; }
img { display: block; max-width: 100%; }

/* Focus universel */
*:focus-visible {
  outline: 2px solid var(--yellow-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ══════════════════════════════════════════════════
   SKIP LINK (accessibilité)
   ══════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: 10px;
  left: 16px;
  background: var(--yellow-500);
  color: var(--navy-1000);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 700;
  z-index: 200;
  transform: translateY(-150%);
  transition: transform var(--t-base);
}
.skip-link:focus { transform: translateY(0); }

/* SVG reset : max-width pour éviter débordements dans flex containers */
.tab svg, .card svg, .section-marker svg, .filter-chip svg, .leak-ico svg, .filters-toggle svg, .filters-clear svg, .no-results svg {
  max-width: 100%;
  max-height: 100%;
}

/* ══════════════════════════════════════════════════
   HEADER — Dark Mode + Logo 3D
   ══════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid rgba(240, 240, 240, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  isolation: isolate;
  will-change: transform;
  transform: translateZ(0);
}

.header-inner {
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  position: relative;
}

/* Bloc gauche : logo + compteur fuites côte à côte */
.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

/* Bloc central : recherche + bouton Filtres */
.search-block {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  width: 100%;
  justify-self: center;
}
.search-block .search-field {
  flex: 1;
  max-width: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--t-base);
}
.brand:hover { transform: translateY(-1px); }

/* Logo — 2 yeux (réf. UIverse "eyes"), pupilles pilotées en JS.
   Polarité inversée vs la réf (forme blanche / sclère sombre / pupille claire)
   pour rester lisible sur le header sombre — même imbrication forme→sclère→pupille. */
.brand-eye {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  width: auto;
  height: 46px;
}
.brand-eye-shape {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--bw-white);
  clip-path: polygon(50% 0%, 78% 8%, 95% 30%, 100% 55%, 88% 82%, 65% 98%, 35% 98%, 12% 82%, 0% 55%, 5% 30%, 22% 8%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-eye-sclera {
  width: 56%;
  height: 56%;
  border-radius: 50%;
  background: var(--navy-1000);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-eye-pupil {
  width: 38%;
  height: 38%;
  border-radius: 50%;
  background: var(--bw-white);
  transition: transform 60ms linear, background var(--t-base);
}
.brand:hover .brand-eye-pupil { background: var(--yellow-500); }

.brand-word {
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1;
}
.brand-word-main {
  font-family: var(--font-hud);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bw-white);
}
.brand-word-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(240, 240, 240, 0.4);
}

.search-field {
  position: relative;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

.search-field input {
  width: 100%;
  height: 46px;
  padding: 0 48px 0 48px;
  background: rgba(240, 240, 240, 0.04);
  border: 1px solid rgba(240, 240, 240, 0.16);
  border-radius: var(--r-pill);
  color: var(--bw-white);
  font-size: 14.5px;
  font-weight: 500;
  transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.search-field input::placeholder { color: rgba(240, 240, 240, 0.35); font-weight: 400; }

.search-field input:focus {
  outline: none;
  background: rgba(240, 240, 240, 0.06);
  border-color: var(--yellow-500);
  box-shadow: 0 0 0 4px rgba(255, 182, 39, 0.18);
}

.search-field .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(240, 240, 240, 0.4);
  pointer-events: none;
}

.search-field .kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  background: var(--yellow-500);
  color: var(--navy-1000);
  border-radius: 2px;
  font-weight: 700;
  pointer-events: none;
  opacity: .85;
}

/* ══════════════════════════════════════════════════
   COMPTEUR DE FUITES — positionné à droite du logo
   Layout horizontal avec icône de bouclier, légende lisible
   ══════════════════════════════════════════════════ */
.leak-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  background: color-mix(in srgb, var(--yellow-500) 8%, transparent);
  border: 1px solid rgba(255, 182, 39, 0.4);
  border-radius: 2px;
  user-select: none;
  line-height: 1.15;
  flex-shrink: 0;
}
.leak-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 2px;
  background: rgba(255, 182, 39, 0.12);
  color: var(--yellow-400);
  flex-shrink: 0;
  position: relative;
}
.leak-ico::after {
  content: '';
  position: absolute;
  top: 3px; right: 3px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--yellow-500);
}
.leak-ico svg {
  width: 16px; height: 16px;
}
.leak-body {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
}
.leak-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--yellow-300);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  transition: color .15s ease-out, text-shadow .15s ease-out;
  line-height: 1.1;
}
.leak-num.tick { color: var(--yellow-100); text-shadow: 0 0 14px rgba(255, 217, 112, 0.55); }
.leak-lbl {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(240, 240, 240, 0.4);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   BOUTON FILTRES (à côté de la search, toujours visible)
   ══════════════════════════════════════════════════ */
.filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: rgba(240, 240, 240, 0.04);
  border: 1px solid rgba(240, 240, 240, 0.16);
  border-radius: var(--r-pill);
  color: rgba(240, 240, 240, 0.7);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-base), border-color var(--t-base),
              transform var(--t-base), color var(--t-base);
  position: relative;
  white-space: nowrap;
  height: 44px;
}
.filters-toggle:hover {
  background: rgba(255, 182, 39, 0.10);
  border-color: var(--yellow-500);
  color: var(--bw-white);
}
.filters-toggle[aria-expanded="true"] {
  background: var(--yellow-500);
  border-color: var(--yellow-500);
  color: var(--navy-1000);
}
.filters-toggle .filters-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--yellow-500);
  color: var(--navy-1000);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0);
  transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.filters-toggle.has-active .filters-count {
  opacity: 1;
  transform: scale(1);
}
.filters-toggle[aria-expanded="true"].has-active .filters-count {
  background: var(--navy-1000);
  color: var(--yellow-400);
}

/* ══════════════════════════════════════════════════
   POPOVER FILTRES — ancrée sous le bouton Filtres
   ══════════════════════════════════════════════════ */
.filters-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 420px;
  max-width: calc(100vw - 32px);
  background: rgba(18, 18, 18, 0.94);
  border: 1px solid rgba(240, 240, 240, 0.14);
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  padding: 14px 16px 16px;
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .25s var(--ease);
}
.filters-popover[data-state="open"] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.filters-popover-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(240, 240, 240, 0.08);
}
.filters-popover-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.filters-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid rgba(240, 240, 240, 0.12);
  border-radius: var(--r-pill);
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base);
}
.filters-clear:hover {
  background: rgba(255, 182, 39, 0.12);
  border-color: rgba(255, 182, 39, 0.35);
  color: var(--yellow-300);
}
.filters-clear svg { width: 11px; height: 11px; }
.filters-popover-body {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* ══════════════════════════════════════════════════
   CURSEUR CUSTOM (réticule à 4 coins, façon target cursor)
   ══════════════════════════════════════════════════ */
html { cursor: default; }
a, button, .tab, .filter-chip, .card-tab-label, input, select, textarea { cursor: pointer; }

.tcursor {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
.tcursor-dot {
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--cursor-color, #FFB627);
  box-shadow: 0 0 8px var(--cursor-color, #FFB627);
}
.tcursor-corner {
  position: absolute;
  left: 0; top: 0;
  width: 12px; height: 12px;
  border: 2px solid var(--cursor-color, #FFB627);
  transition: transform .2s var(--ease-out-soft), border-color .15s ease;
}
.tcursor-corner.tl { transform: translate3d(-22px, -22px, 0); border-right: none; border-bottom: none; }
.tcursor-corner.tr { transform: translate3d(10px, -22px, 0);  border-left: none;  border-bottom: none; }
.tcursor-corner.br { transform: translate3d(10px, 10px, 0);   border-left: none;  border-top: none; }
.tcursor-corner.bl { transform: translate3d(-22px, 10px, 0);  border-right: none; border-top: none; }
.tcursor.is-locked .tcursor-corner { transition: transform .2s var(--ease-out-soft); }
.tcursor.is-locked .tcursor-dot { opacity: 0.4; }

/* Masquer le curseur natif seulement quand le JS a bien pris la main */
html.tcursor-on, html.tcursor-on * { cursor: none !important; }

/* Masquer sur appareils tactiles */
@media (hover: none), (pointer: coarse) {
  .tcursor { display: none !important; }
  html, body { cursor: auto; }
}

/* ══════════════════════════════════════════════════
   RECHERCHE ACTIVE — masque hero / filtres / tabs
   pour concentrer l'utilisateur sur les résultats
   ══════════════════════════════════════════════════ */
body.search-active .hero,
body.search-active .header-tags-bar,
body.search-active .nav-tabs-wrap {
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  border: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height .3s var(--ease),
              opacity .25s var(--ease),
              transform .3s var(--ease),
              padding .3s var(--ease),
              margin .3s var(--ease);
}
body.search-active .hero { margin-bottom: 0; }
/* recule de l'espace pour le main */
body.search-active .main { padding-top: 24px; }

/* ══════════════════════════════════════════════════
   TAGS BAR (header global) — Ancienne barre, remplacée par popover.
   On garde la classe pour compat des barres de section.
   ══════════════════════════════════════════════════ */
.header-tags-bar {
  padding: 7px var(--gutter) 9px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  transition: max-height .4s var(--ease), opacity .3s var(--ease), padding .3s var(--ease);
}
.header-tags-bar .tags-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-right: 4px;
}

/* ══════════════════════════════════════════════════
   CHIPS — aspect hover par défaut
   État focus/actif : couleur pleine du tag avec opacité
   ══════════════════════════════════════════════════ */
.filter-chip {
  /* couleurs par défaut ; surchargées par [data-tag="…"] via --tg-bg/--tg-fg/--tg-solid */
  --tg-bg: rgba(90, 150, 240, 0.14);
  --tg-fg: #93B8F0;
  --tg-solid: #5A96F0;

  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  cursor: pointer;
  /* Repos : neutre et discret — la couleur du tag n'apparaît qu'au survol/actif */
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
  white-space: nowrap;
  line-height: 1.2;
  outline: none;
}
.filter-chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--tg-solid) 70%, transparent);
  background: color-mix(in srgb, var(--tg-solid) 18%, transparent);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--tg-solid) 28%, transparent);
}
/* État focus clavier : anneau accessibilité */
.filter-chip:focus-visible {
  outline: 2px solid var(--tg-solid);
  outline-offset: 2px;
}
/* État actif : couleur pleine du tag, texte lisible + opacité marquée */
.filter-chip.is-active {
  background: color-mix(in srgb, var(--tg-solid) 85%, transparent);
  color: var(--navy-1000);
  border-color: var(--tg-solid);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--tg-solid) 45%, transparent);
  font-weight: 700;
}
.filter-chip .chip-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  opacity: 0.85;
}
.filter-chip.is-active .chip-count {
  background: rgba(18, 18, 18, 0.28);
  color: var(--navy-1000);
  opacity: 1;
}

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  margin: 10px var(--gutter) 0;
  padding: clamp(24px, 2.6vw, 36px) clamp(20px, 2.6vw, 36px) clamp(32px, 3.5vw, 48px);
  z-index: 1;
  background: color-mix(in srgb, var(--bw-black) 88%, transparent);
  border: 1px dashed rgba(240, 240, 240, 0.16);
  overflow: hidden;
}

/* Scanlines discrètes — texture terminal, pas d'animation (perf) */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(240, 240, 240, 0.035) 0px,
    rgba(240, 240, 240, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 0;
}

/* Coins HUD — réticule de visée asymétrique (bras inégaux + point de référence) */
.hud-corner {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 0 1.5px var(--bw-white);
}
.hud-corner::before, .hud-corner::after {
  content: '';
  position: absolute;
  background: var(--bw-white);
}
.hud-corner::before { height: 1px; }
.hud-corner::after { width: 1px; }

.hud-corner.tl { top: 12px; left: 12px; }
.hud-corner.tl::before { top: 0; left: 0; width: 28px; }
.hud-corner.tl::after  { top: 0; left: 0; height: 15px; }

.hud-corner.tr { top: 12px; right: 12px; }
.hud-corner.tr::before { top: 0; right: 0; width: 15px; }
.hud-corner.tr::after  { top: 0; right: 0; height: 28px; }

.hud-corner.bl { bottom: 12px; left: 12px; }
.hud-corner.bl::before { bottom: 0; left: 0; width: 15px; }
.hud-corner.bl::after  { bottom: 0; left: 0; height: 28px; }

.hud-corner.br { bottom: 12px; right: 12px; }
.hud-corner.br::before { bottom: 0; right: 0; width: 28px; }
.hud-corner.br::after  { bottom: 0; right: 0; height: 15px; }

/* Bandeau readout — ligne de statut façon terminal */
.hud-readout {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.4);
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(240, 240, 240, 0.12);
}
.hud-readout-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hud-readout-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow-500);
}

/* Photo scan — image fournie, fondue au fond via blend mode.
   Positionnée derrière le texte : le texte peut librement passer devant. */
.hero-scan-img {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: min(560px, 46%);
  max-height: calc(100% - 32px);
  height: auto;
  object-fit: contain;
  z-index: 0;
  mix-blend-mode: screen;
  opacity: .92;
  pointer-events: none;
  user-select: none;
  animation: heroImgGlitch 7s steps(1, end) infinite;
}

/* Glitch régulier — salve longue et cadencée toutes les ~7s, signal qui saute fort */
@keyframes heroImgGlitch {
  0%, 74%, 100% {
    clip-path: inset(0 0 0 0);
    transform: translateY(-50%) translateX(0);
    filter: none;
  }
  76% {
    clip-path: inset(14% 0 58% 0);
    transform: translateY(-50%) translateX(-18px);
    filter: hue-rotate(70deg) saturate(2.8) brightness(1.25) contrast(1.3) drop-shadow(4px 0 rgba(255, 60, 60, 0.55)) drop-shadow(-4px 0 rgba(60, 220, 255, 0.55));
  }
  78% {
    clip-path: inset(48% 0 16% 0);
    transform: translateY(-50%) translateX(15px);
    filter: hue-rotate(-60deg) saturate(2.2) contrast(1.4);
  }
  80% {
    clip-path: inset(0 0 0 0);
    transform: translateY(calc(-50% - 4px)) translateX(-9px);
    filter: contrast(1.5) brightness(1.3);
  }
  82% {
    clip-path: inset(62% 0 6% 0);
    transform: translateY(-50%) translateX(19px) ;
    filter: hue-rotate(90deg) saturate(2.6) drop-shadow(-4px 0 rgba(255, 60, 60, 0.5)) drop-shadow(4px 0 rgba(60, 220, 255, 0.5));
  }
  84% {
    clip-path: inset(0 0 0 0);
    transform: translateY(-50%) translateX(0);
    filter: none;
  }
  86% {
    clip-path: inset(6% 0 74% 0);
    transform: translateY(-50%) translateX(-14px);
    filter: saturate(2.4) hue-rotate(-80deg) contrast(1.3);
  }
  88% {
    clip-path: inset(33% 0 42% 0);
    transform: translateY(calc(-50% + 3px)) translateX(17px);
    filter: contrast(1.6) brightness(1.3);
  }
  90% {
    clip-path: inset(0 0 0 0);
    transform: translateY(-50%) translateX(0);
    filter: none;
  }
  92% {
    clip-path: inset(52% 0 18% 0);
    transform: translateY(-50%) translateX(-20px);
    filter: hue-rotate(50deg) saturate(2.6) drop-shadow(4px 0 rgba(255, 60, 60, 0.5)) drop-shadow(-4px 0 rgba(60, 220, 255, 0.5));
  }
  94% {
    clip-path: inset(22% 0 52% 0);
    transform: translateY(-50%) translateX(12px);
    filter: contrast(1.5) brightness(1.2);
  }
  96% {
    clip-path: inset(0 0 0 0);
    transform: translateY(-50%) translateX(-6px);
    filter: brightness(1.15);
  }
  98% {
    clip-path: inset(0 0 0 0);
    transform: translateY(-50%) translateX(0);
    filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scan-img { animation: none; }
}

/* Bloc texte — largeur plafonnée à 760px, mais qui cède la place à la
   photo sur les viewports moyens plutôt que de la chevaucher fort */
.hero-grid {
  position: relative;
  z-index: 1;
  max-width: min(760px, 56%);
}
@media (max-width: 900px) {
  .hero-grid { max-width: 100%; }
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(240, 240, 240, 0.22);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  color: rgba(240, 240, 240, 0.75);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-badge svg { color: var(--yellow-500); flex-shrink: 0; }
.hero-badge strong {
  color: var(--yellow-500);
  font-weight: 700;
}

/* Encarts HUD — règles du site + définitions, coin chanfreiné,
   label posé à cheval sur la bordure (façon planches HUD de référence) */
.hud-boxes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  max-width: 720px;
}
/* Sharp Content Card — légende compacte, bordure hairline, aucune décoration */
.hud-box {
  position: relative;
  background: rgba(31, 31, 31, 0.55);
  border: 1px solid var(--border-strong);
  padding: 8px 12px;
}
.hud-box-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.hud-box-text {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  color: var(--ink-2);
}
.hud-box-text + .hud-box-text {
  margin-top: 3px;
}

@media (max-width: 900px) {
  .hero-scan-img { display: none; }
}

.hero-title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.38em;
  row-gap: 0;
  font-family: var(--font-hud);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bw-white);
  max-width: 780px;
  margin-bottom: 16px;
  hyphens: none;
}

.hero-title-seg {
  white-space: nowrap;
  color: var(--bw-white);
}

/* Décryptage : caractères brouillés → texte final, au chargement */
.hero-title-seg[data-decrypt] .decrypt-char--encrypted {
  color: rgba(255, 182, 39, 0.75);
}

.hero-desc {
  position: relative;
  z-index: 1;
  max-width: 720px;
  font-size: clamp(15px, 1.55vw, 18px);
  color: rgba(240, 240, 240, 0.62);
  line-height: 1.65;
  margin-bottom: 44px;
  text-wrap: pretty;
}

.hero-catchphrase {
  position: relative;
  z-index: 1;
  max-width: 720px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(240, 240, 240, 0.5);
  border-left: 2px solid var(--yellow-500);
  padding-left: 14px;
  margin-bottom: 28px;
}
.hero-catchphrase cite {
  display: block;
  font-style: normal;
  color: rgba(240, 240, 240, 0.32);
  margin-top: 6px;
}
.hero-catchphrase--green {
  border-left-color: var(--green-500);
  color: var(--green-200);
}
.hero-catchphrase--green cite {
  color: rgba(184, 236, 199, 0.4);
}

/* ══════════════════════════════════════════════════
   NAV TABS (Catégories)
   ══════════════════════════════════════════════════ */
.nav-tabs-wrap {
  position: relative;               /* le parent <header> est sticky, c'est lui qui colle en haut */
  z-index: 99;
  background: rgba(18, 18, 18, 0.18);
  backdrop-filter: blur(40px) saturate(2.0);
  -webkit-backdrop-filter: blur(40px) saturate(2.0);
  border-top: 1px solid rgba(240, 240, 240, 0.06);
  transition: opacity .3s var(--ease), transform .3s var(--ease), max-height .35s var(--ease);
}

/* Indicateurs de défilement (gauche/droite) — signalent que c'est scrollable */
.nav-tabs-outer {
  position: relative;
}
.nav-tabs-outer::before,
.nav-tabs-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--t-base);
}
.nav-tabs-outer::before {
  left: 0;
  background: linear-gradient(90deg, var(--navy-1000) 10%, rgba(6,13,26,0) 100%);
}
.nav-tabs-outer::after {
  right: 0;
  background: linear-gradient(-90deg, var(--navy-1000) 10%, rgba(6,13,26,0) 100%);
}
.nav-tabs-outer.has-overflow-left::before  { opacity: 1; }
.nav-tabs-outer.has-overflow-right::after  { opacity: 1; }

/* Boutons flèches scroll */
.nav-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--yellow-500), var(--yellow-400));
  color: var(--navy-1000);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  border: none;
  box-shadow: 0 4px 14px rgba(255, 182, 39, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
}
.nav-scroll-btn svg { width: 18px; height: 18px; }
.nav-scroll-btn.left  { left: 6px; }
.nav-scroll-btn.right { right: 6px; }
.nav-scroll-btn:hover { transform: translateY(-50%) scale(1.08); }
.nav-tabs-outer.has-overflow-left  .nav-scroll-btn.left  { opacity: 1; pointer-events: auto; }
.nav-tabs-outer.has-overflow-right .nav-scroll-btn.right { opacity: 1; pointer-events: auto; }

/* Hint badge "scrollable" — désactivé (les flèches de scroll suffisent comme indicateur) */
.scroll-hint {
  display: none !important;
}

.nav-tabs {
  padding: 12px max(52px, var(--gutter));
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 182, 39, 0.35) transparent;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-padding-left: 60px;
  scroll-padding-right: 60px;
}
.nav-tabs::-webkit-scrollbar { height: 4px; }
.nav-tabs::-webkit-scrollbar-track { background: transparent; }
.nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 182, 39, 0.4);
  border-radius: 4px;
}
.nav-tabs::-webkit-scrollbar-thumb:hover {
  background: var(--yellow-500);
}

.tab {
  scroll-snap-align: center;
  min-height: 44px;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-2);
  border: 1px solid rgba(240, 240, 240, 0.08);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  flex-shrink: 0;
}

.tab:hover {
  background: rgba(255, 182, 39, 0.14);
  color: var(--yellow-200);
  border-color: rgba(255, 182, 39, 0.45);
}

.tab.is-active {
  background: linear-gradient(135deg, rgba(255, 182, 39, 0.30), rgba(255, 201, 74, 0.30));
  color: var(--yellow-100);
  border-color: rgba(255, 182, 39, 0.55);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
}

.tab .tab-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: currentColor;
  opacity: 0.85;
  flex-shrink: 0;
}
.tab .tab-ico svg { width: 18px; height: 18px; display: block; }
.tab.is-active .tab-ico { opacity: 1; }

.tab .tab-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  background: rgba(240, 240, 240, 0.08);
  color: var(--ink-muted);
  border-radius: var(--r-pill);
}

.tab.is-active .tab-count {
  background: rgba(18, 18, 18, 0.25);
  color: var(--navy-1000);
}

/* Repère scroll-spy : même traitement visuel que hover/focus, mais en vert (accent hero) */
.tab.is-current:not(.is-active) {
  background: rgba(63, 168, 92, 0.14);
  color: var(--green-200);
  border-color: rgba(63, 168, 92, 0.45);
}

/* ══════════════════════════════════════════════════
   SCROLL CONTEXT — pastille sticky, section en cours
   ══════════════════════════════════════════════════ */
.scroll-context {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--r-pill);
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 182, 39, 0.28);
  color: var(--yellow-200);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  will-change: transform, opacity;
}
.scroll-context.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.scroll-context-icon {
  display: inline-flex;
  color: var(--yellow-400);
}
.scroll-context-icon svg { width: 16px; height: 16px; display: block; }

@media (max-width: 768px) {
  .scroll-context { top: auto; bottom: 78px; font-size: 11px; }
}

/* ══════════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════════ */
.main {
  padding: clamp(24px, 3vw, 40px) var(--gutter) 64px;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════
   SECTION — plus de respiration, hiérarchie renforcée
   ══════════════════════════════════════════════════ */
.section {
  margin-bottom: clamp(72px, 9vw, 112px);
  scroll-margin-top: 170px;
  padding-top: 16px;
}

.section-head {
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* Accent bar ligne sous le titre */
.section-head::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--yellow-500);
}

.section-head .section-marker {
  width: 68px;
  height: 68px;
  background: rgba(240, 240, 240, 0.05);
  color: var(--yellow-400);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
  transform: rotate(-4deg);
  transition: transform var(--t-slow);
}
.section-head .section-marker::before {
  content: '';
  position: absolute;
  inset: 6px;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  border: 1px solid rgba(240, 240, 240, 0.14);
  pointer-events: none;
}
.section-head .section-marker::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 182, 39, 0.4) 50%, transparent 65%);
  transform: translateX(-130%);
  pointer-events: none;
}
.section-head .section-marker svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.8;
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.section:hover .section-head .section-marker {
  transform: rotate(0deg) scale(1.05);
}
.section.visible .section-head .section-marker::after {
  animation: hexScan 1.1s var(--ease-out-soft) .15s 1;
}
.section-head:hover .section-marker::after {
  animation: hexScan .6s var(--ease-out-soft);
}
@keyframes hexScan {
  0%   { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
  .section-head .section-marker::after { animation: none !important; }
}

.section-head .section-text {
  min-width: 0;
  padding-top: 4px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  text-wrap: balance;
}

.section-title .section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--yellow-400);
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(255, 182, 39, 0.12);
  padding: 3px 9px;
  border-radius: 0;
  border: 1px solid rgba(255, 182, 39, 0.3);
}

.section-desc {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 780px;
  margin-top: 6px;
  text-wrap: pretty;
}

.section-count-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(240, 240, 240, 0.06);
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  align-self: start;
}

/* ══════════════════════════════════════════════════
   SECTION TAGS BAR — filtres par catégorie
   ══════════════════════════════════════════════════ */
.section-tags-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bw-black) 88%, transparent);
  border: 1px dashed rgba(240, 240, 240, 0.28);
  border-radius: 0;
}
.section-tags-bar .stags-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(240, 240, 240, 0.08);
  border: 1px solid var(--border-strong);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  margin-right: 4px;
  white-space: nowrap;
}
/* Contraste renforcé — plus visibles au repos que les chips du popover header */
.section-tags-bar .filter-chip {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
  border-color: rgba(255, 255, 255, 0.26);
}

/* ══════════════════════════════════════════════════
   CARD GRID
   ══════════════════════════════════════════════════ */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.grid > .card {
  flex: 0 1 calc((100% - 2 * 28px) / 3);
  max-width: 460px;
  min-width: 0;
}

/* ══════════════════════════════════════════════════
   CARD — chassis terminal (réf. UIverse Pip-Boy CRT,
   recoloré jaune/monochrome — vert d'origine hors charte)
   ══════════════════════════════════════════════════ */
.card {
  position: relative;
  display: flex;
  padding: 9px;
  background: linear-gradient(150deg, #2c2c2c, #1a1a1a 55%, #232323);
  border: 1px solid rgba(240, 240, 240, 0.14);
  border-radius: var(--radius-card);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  color: var(--ink);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 182, 39, 0.4);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.55);
}

/* Vis de chassis — coins rivetés, façon panneau terminal */
.card-bezel { position: absolute; inset: 0; pointer-events: none; }
.card-screw {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(240, 240, 240, 0.35), rgba(0, 0, 0, 0.5));
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.25), inset 0 -0.5px 1px rgba(0, 0, 0, 0.6);
  transition: box-shadow var(--t-base);
}
.card-screw::after {
  content: '';
  position: absolute;
  top: 50%; left: 15%;
  width: 70%; height: 1px;
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-50%) rotate(45deg);
}
.card-screw.tl { top: 5px; left: 5px; }
.card-screw.tr { top: 5px; right: 5px; }
.card-screw.bl { bottom: 5px; left: 5px; }
.card-screw.br { bottom: 5px; right: 5px; }
.card:hover .card-screw { box-shadow: inset 0 0.5px 0 rgba(240, 240, 240, 0.45), inset 0 -0.5px 1px rgba(0, 0, 0, 0.6), 0 0 4px rgba(240, 240, 240, 0.5); }

/* Écran CRT */
.card-screen {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
  background: var(--navy-1000);
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.85), inset 0 0 40px rgba(240, 240, 240, 0.04);
  overflow: hidden;
  isolation: isolate;
  min-height: 212px;
}

.card-scanlines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background: repeating-linear-gradient(
    0deg,
    rgba(240, 240, 240, 0.05) 0px,
    rgba(240, 240, 240, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  transition: opacity var(--t-base);
}
.card:hover .card-scanlines { opacity: 0.9; }

/* Top bar — index // ligne glow // catégorie */
.card-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.card-index {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow: 0 0 6px rgba(240, 240, 240, 0.4);
}
.card-topline {
  flex: 1;
  height: 1px;
  min-width: 12px;
  background: linear-gradient(90deg, rgba(240, 240, 240, 0.5), rgba(240, 240, 240, 0.1));
}
.card-status {
  flex-shrink: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bloc central — icône encadrée / nom en glow-pill / anneau de scan */
.card-mid {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}
.card-mid-col {
  flex-shrink: 0;
  width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.card-icon-box {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-400);
  border: 1px solid rgba(63, 168, 92, 0.35);
  background: rgba(63, 168, 92, 0.06);
  box-shadow: inset 0 0 8px rgba(63, 168, 92, 0.15);
  transition: transform var(--t-base);
}
.card-icon-box svg { width: 19px; height: 19px; stroke-width: 1.8; display: block; flex-shrink: 0; }
.card-mid:hover .card-icon-box { transform: scale(1.06); }
.card-cat-abbr {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-light);
}
.card-mid-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card-name-glow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-hud);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--yellow-200);
  background: color-mix(in srgb, var(--yellow-500) 20%, transparent);
  border: 1px solid rgba(255, 182, 39, 0.4);
  padding: 6px 10px;
  box-shadow: 0 0 16px rgba(255, 182, 39, 0.28), 0 0 3px rgba(255, 182, 39, 0.4);
  transition: box-shadow var(--t-base), background var(--t-base), border-color var(--t-base);
}
.card-name-text {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.card-name-arrow {
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform var(--t-base), opacity var(--t-base);
}
.card-name-glow:hover, .card-name-glow:focus-visible, .card-mid:hover .card-name-glow {
  background: color-mix(in srgb, var(--yellow-500) 30%, transparent);
  border-color: rgba(255, 182, 39, 0.65);
  box-shadow: 0 0 22px rgba(255, 182, 39, 0.4), 0 0 5px rgba(255, 182, 39, 0.55);
}
.card-name-glow:hover .card-name-arrow, .card-name-glow:focus-visible .card-name-arrow, .card-mid:hover .card-name-arrow {
  transform: translateX(2px);
  opacity: 1;
}
.card-url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-scan-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 182, 39, 0.7);
  background: conic-gradient(
    var(--yellow-500) 0deg 60deg, transparent 60deg 120deg,
    var(--yellow-500) 120deg 180deg, transparent 180deg 240deg,
    var(--yellow-500) 240deg 300deg, transparent 300deg 360deg
  );
  box-shadow: 0 0 8px rgba(255, 182, 39, 0.4);
}
.card-mid:hover .card-scan-ring { animation: cardScanSpin 3s linear infinite; }
@keyframes cardScanSpin { to { transform: rotate(360deg); } }
.card-price-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* Radios cachés (mais focusables au clavier) — pilotent les 3 panneaux */
.card-tab-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Panneaux — un seul visible à la fois, selon le radio coché */
.card-panels {
  flex: 1;
  min-height: 56px;
  margin-bottom: 12px;
}
.card-panel { display: none; }
.card-tab-radio--info:checked ~ .card-screen .card-panel-info {
  display: -webkit-box;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.card-tab-radio--tags:checked ~ .card-screen .card-panel-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}
.card-panel-empty {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-light);
}
.card-tab-radio--example:checked ~ .card-screen .card-panel-example {
  display: -webkit-box;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}

/* Bottom bar — vrais onglets façon STAT | INV | DATA */
.card-botbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.card-tab-line { flex: 0 1 20px; }
.card-tab-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding: 4px 8px;
  border: 1px solid rgba(240, 240, 240, 0.35);
  cursor: pointer;
  transition: color var(--t-base), border-color var(--t-base), background var(--t-base);
}
.card-tab-label:hover { color: var(--ink); border-color: rgba(240, 240, 240, 0.6); }
.card-tab-radio--info:checked ~ .card-screen .card-botbar label[for$="-info"],
.card-tab-radio--tags:checked ~ .card-screen .card-botbar label[for$="-tags"],
.card-tab-radio--example:checked ~ .card-screen .card-botbar label[for$="-example"] {
  color: var(--yellow-500);
  background: transparent;
  border-color: var(--yellow-500);
  box-shadow: 0 0 8px rgba(255, 182, 39, 0.25);
}
.card-tab-radio--info:focus-visible ~ .card-screen .card-botbar label[for$="-info"],
.card-tab-radio--tags:focus-visible ~ .card-screen .card-botbar label[for$="-tags"],
.card-tab-radio--example:focus-visible ~ .card-screen .card-botbar label[for$="-example"] {
  outline: 2px solid var(--yellow-500);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════
   TAGS — style unifié entre cartes (.tag) et filtres (.filter-chip)
   ══════════════════════════════════════════════════ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  background: var(--tag-tool-bg);
  color: var(--tag-tool-fg);
  border: 1px solid transparent;
}

/* Couleur par tag — sélecteurs uniques */
.tag.free,     .filter-chip[data-tag="free"]     { --tg-bg: var(--tag-free-bg);    --tg-fg: var(--tag-free-fg);    --tg-solid: var(--tag-free-solid); }
.tag.paid,     .filter-chip[data-tag="paid"]     { --tg-bg: var(--tag-paid-bg);    --tg-fg: var(--tag-paid-fg);    --tg-solid: var(--tag-paid-solid); }
.tag.tool,     .filter-chip[data-tag="tool"]     { --tg-bg: var(--tag-tool-bg);    --tg-fg: var(--tag-tool-fg);    --tg-solid: var(--tag-tool-solid); }
.tag.french,   .filter-chip[data-tag="french"]   { --tg-bg: var(--tag-fr-bg);      --tg-fg: var(--tag-fr-fg);      --tg-solid: var(--tag-fr-solid); }
.tag.youtube,  .filter-chip[data-tag="youtube"]  { --tg-bg: var(--tag-youtube-bg); --tg-fg: var(--tag-youtube-fg); --tg-solid: var(--tag-youtube-solid); }
.tag.ai,       .filter-chip[data-tag="ai"]       { --tg-bg: var(--tag-ai-bg);      --tg-fg: var(--tag-ai-fg);      --tg-solid: var(--tag-ai-solid); }
.tag.cyber,    .filter-chip[data-tag="cyber"]    { --tg-bg: var(--tag-cyber-bg);   --tg-fg: var(--tag-cyber-fg);   --tg-solid: var(--tag-cyber-solid); }
.tag.osint,    .filter-chip[data-tag="osint"]    { --tg-bg: var(--tag-osint-bg);   --tg-fg: var(--tag-osint-fg);   --tg-solid: var(--tag-osint-solid); }
.tag.privacy,  .filter-chip[data-tag="privacy"]  { --tg-bg: var(--tag-privacy-bg); --tg-fg: var(--tag-privacy-fg); --tg-solid: var(--tag-privacy-solid); }
.tag.learning, .filter-chip[data-tag="learning"] { --tg-bg: var(--tag-learning-bg);--tg-fg: var(--tag-learning-fg);--tg-solid: var(--tag-learning-solid); }

/* Application commune */
.tag[class*=" "], .tag.free, .tag.paid, .tag.tool, .tag.french, .tag.youtube,
.tag.ai, .tag.cyber, .tag.osint, .tag.privacy, .tag.learning {
  background: var(--tg-bg);
  color: var(--tg-fg);
}

/* ══════════════════════════════════════════════════
   NO RESULTS
   ══════════════════════════════════════════════════ */
.no-results {
  text-align: center;
  padding: 80px 24px;
  color: var(--ink-muted);
  display: none;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px dashed var(--border-accent);
}

.no-results.show { display: block; }

.no-results .emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin-bottom: 16px;
  color: var(--yellow-400);
  animation: float 3s ease-in-out infinite;
}
.no-results .emoji svg { width: 100%; height: 100%; stroke-width: 1.6; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.no-results h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--yellow-400);
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
/* Chassis façon hero : mêmes matériaux (dashed border, fond color-mix, scanlines) */
.site-footer {
  position: relative;
  z-index: 1;
  margin: clamp(48px, 6vw, 96px) var(--gutter) 24px;
  color: var(--ink-2);
  padding: clamp(24px, 2.6vw, 36px) clamp(20px, 2.6vw, 36px) clamp(32px, 3.5vw, 48px);
  background: color-mix(in srgb, var(--bw-black) 88%, transparent);
  border: 1px dashed rgba(240, 240, 240, 0.16);
  overflow: hidden;
}
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(240, 240, 240, 0.035) 0px,
    rgba(240, 240, 240, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 0;
}

.footer-grid {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.footer-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-tagline {
  max-width: 640px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(240, 240, 240, 0.5);
  border-left: 2px solid var(--yellow-500);
  padding-left: 14px;
  margin-bottom: 28px;
}

.footer-divider {
  margin: 48px 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

.footer-bottom {
  margin: 24px 0 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-light);
}

.footer-bottom a {
  color: var(--yellow-400);
  transition: color var(--t-base);
}
.footer-bottom a:hover { color: var(--yellow-300); }

/* ══════════════════════════════════════════════════
   ANIMATIONS : reveal avec ralentissement à l'entrée
   ══════════════════════════════════════════════════ */
.section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s var(--ease-out-soft), transform .5s var(--ease-out-soft);
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger enfants : head arrive légèrement après, avec une pause marquée sur le titre */
.section .section-head {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s var(--ease-out-soft) 0.18s, transform 1.1s var(--ease-out-soft) 0.18s;
}
.section.visible .section-head {
  opacity: 1;
  transform: translateY(0);
}
.section .section-tags-bar {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out-soft) 0.25s, transform 0.7s var(--ease-out-soft) 0.25s;
}
.section.visible .section-tags-bar {
  opacity: 1;
  transform: translateY(0);
}
.section .grid {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease-out-soft) 0.3s, transform 0.8s var(--ease-out-soft) 0.3s;
}
.section.visible .grid {
  opacity: 1;
  transform: translateY(0);
}

/* ────────────────────────────────────────────────────────
   BACK-TO-TOP BUTTON
   ──────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 80;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(240, 240, 240, 0.22);
  border-radius: 2px;
  background: rgba(18, 18, 18, 0.35);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  color: var(--ink-2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22,1,.36,1), background .25s, border-color .25s, color .25s;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
.back-to-top.is-visible {
  opacity: 0.72;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  opacity: 1;
  color: var(--yellow-300);
  border-color: rgba(255, 182, 39, 0.45);
  background: rgba(30, 30, 30, 0.55);
}
.back-to-top:focus-visible {
  opacity: 1;
  outline: 2px solid var(--yellow-400);
  outline-offset: 3px;
}
.back-to-top svg { display: block; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.001ms !important; }
  .section,
  .section .section-head,
  .section .section-tags-bar,
  .section .grid { opacity: 1; transform: none; filter: none; }
}

/* Scrollbar custom dark mode */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 182, 39, 0.25);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 182, 39, 0.5); }

mark {
  background: var(--yellow-500);
  color: var(--navy-1000);
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Breakpoints 1024 / 768 / 480
   ══════════════════════════════════════════════════ */

/* ≤ 1024px : tablette large */
@media (max-width: 1024px) {
  .grid > .card {
    flex-basis: calc((100% - 28px) / 2);
  }
  .section-head {
    grid-template-columns: auto 1fr;
  }
  .section-count-chip {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
}

/* ≤ 768px : tablette / gros mobile */
@media (max-width: 768px) {
  html { scroll-padding-top: 160px; }

  .header-inner {
    grid-template-columns: 1fr;  /* tout en colonne */
    gap: 10px;
    row-gap: 10px;
  }
  /* Le brand-block : logo + leak counter côte à côte, responsive */
  .brand-block {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .brand-eye { height: 38px; }
  .brand-eye-shape { width: 34px; height: 34px; }

  .brand-word-main { font-size: 16px; }

  /* Leak counter compact */
  .leak-counter { padding: 5px 10px 5px 7px; gap: 8px; }
  .leak-ico { width: 26px; height: 26px; }
  .leak-ico svg { width: 14px; height: 14px; }
  .leak-num { font-size: 14px; }
  .leak-lbl { font-size: 9.5px; }

  /* Search + bouton Filtres : pleine largeur sur mobile */
  .search-block {
    max-width: none;
    width: 100%;
    gap: 8px;
  }
  .search-block .search-field .kbd { display: none; }
  .filters-toggle {
    height: 40px;
    padding: 8px 12px;
    font-size: 12.5px;
  }

  /* Popover : adapte width */
  .filters-popover {
    min-width: 0;
    left: 16px;
    right: 16px;
    transform: translateY(-6px);
    width: auto;
  }
  .filters-popover[data-state="open"] {
    transform: translateY(0);
  }

  /* Barre filtres : masquée par défaut, ouverte au clic */
  .header-tags-bar {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    padding: 14px var(--gutter) 18px;
    gap: 7px;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(36px) saturate(1.8);
    -webkit-backdrop-filter: blur(36px) saturate(1.8);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height .35s var(--ease), opacity .25s var(--ease),
                transform .3s var(--ease), padding .3s var(--ease);
  }
  .header-tags-bar[data-state="open"] {
    max-height: 70vh;
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .header-tags-bar .tags-label { width: 100%; margin-bottom: 6px; }
  .filter-chip { font-size: 11px; padding: 5px 10px; }
  .filters-apply { display: inline-flex; }

  .nav-tabs { padding: 10px 44px; }
  .tab { padding: 8px 13px; font-size: 13px; }
  .nav-scroll-btn { width: 30px; height: 30px; }
  .nav-scroll-btn svg { width: 14px; height: 14px; }

  .hero { padding-top: clamp(32px, 5vw, 48px); }

  .section { margin-bottom: 72px; }
  .section-head .section-marker {
    width: 56px;
    height: 56px;
    font-size: 26px;
  }
  .section-title { font-size: 26px; }

  .grid {
    gap: 12px;
  }
  .grid > .card {
    flex-basis: calc((100% - 12px) / 2);
  }

  .footer-bottom { flex-direction: column; }
}

/* ≤ 480px : mobile */
@media (max-width: 480px) {
  :root { --gutter: 14px; --radius-card: 0px; }

  .header-inner { padding: 12px var(--gutter); }
  .brand-eye { height: 38px; }
  .brand-eye-shape { width: 34px; height: 34px; }

  .brand-word-main { font-size: 16px; }
  .header-badge {
    font-size: 10px;
    padding: 5px 9px;
  }
  .header-badge .dot { width: 6px; height: 6px; }

  .search-field input { height: 42px; font-size: 14px; padding-left: 44px; padding-right: 16px; }
  .search-field .search-icon { left: 15px; }

  .nav-tabs { padding: 10px 38px; gap: 5px; }
  .tab { padding: 7px 11px; font-size: 12.5px; gap: 6px; }

  .hero {
    padding-top: clamp(28px, 6vw, 44px);
    padding-bottom: 28px;
  }
  .hero-eyebrow {
    font-size: 10px;
    padding: 5px 11px 5px 8px;
  }
  .hero-badges-row { gap: 8px; }
  .hero-badge { font-size: 10px; padding: 5px 10px; }

  .main { padding-top: 20px; }

  .section-head {
    gap: 14px;
    margin-bottom: 28px;
  }
  .section-head .section-marker {
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 10px;
  }
  .section-title { font-size: 23px; }
  .section-desc { font-size: 14px; }
  .section-tags-bar { padding: 10px 12px; }

  .grid {
    gap: 10px;
  }
  .grid > .card {
    flex-basis: 100%;
    max-width: none;
  }

  .card { padding: 7px; }
  .card-screen { padding: 12px 12px 10px; min-height: auto; }
  .card-icon-box { width: 34px; height: 34px; }
  .card-icon-box svg { width: 17px; height: 17px; }
  .card-name-glow { font-size: 13px; }
  .card-desc { font-size: 12.5px; -webkit-line-clamp: 3; }
}

/* Print */
@media print {
  .bg-pattern, body::after, .nav-tabs-wrap, .search-field, .site-footer, .header-tags-bar, .section-tags-bar { display: none; }
  body { background: #fff; color: #000; }
  .card { break-inside: avoid; background: #fff; color: #000; border-color: #ccc; }
}
