@import url('couleurs.css');

:root {
  --bg: #050a05;
  --surface: #001e00;
  --surface2: #031203;
  --border: rgba(57, 255, 20, 0.15);
  --accent: #ff3030;
  --accent2: #39ff14;
  --accent3: #1aff7a;
  --text: #c8ffc8;
  --text-muted: #80cc80;
  --text-dim: #3a6b3a;
  --green: #39ff14;
  --purple: #1aff7a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .5;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent2);
  border-radius: 2px;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 15, 19, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .75rem;
  color: var(--accent);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--accent2);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 57, 70, .15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(76, 201, 240, .08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  animation: fadeUp .8s ease both;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp .8s .1s ease both;
}

.hero h1 span {
  color: var(--accent);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent2);
  display: block;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  max-width: 900px;
  margin-top: 3rem;
  animation: fadeUp .8s .3s ease both;
}

.hero-meta-item {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
}

.hero-meta-item .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: .25rem;
}

.hero-meta-item .value {
  font-family: 'Syne', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(6, 214, 160, .1);
  border: 1px solid rgba(6, 214, 160, .3);
  color: var(--green);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  letter-spacing: .1em;
  padding: .4rem .8rem;
  border-radius: 2px;
  margin-top: 2rem;
  animation: fadeUp .8s .2s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(.8);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── LAYOUT ─── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── SECTION ─── */
section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  color: var(--accent);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.section-label::before {
  content: attr(data-index);
  color: var(--text-dim);
}

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent2);
  margin: 2rem 0 .75rem;
  letter-spacing: -.01em;
}

h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent3);
  margin: 1.5rem 0 .5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 72ch;
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}

.card:hover {
  border-color: var(--accent2);
  transform: translateX(4px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
}

.card.blue::before {
  background: var(--accent2);
}

.card.green::before {
  background: var(--green);
}

.card.orange::before {
  background: var(--accent3);
}

.card.purple::before {
  background: var(--purple);
}

/* ─── INFO GRID ─── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.info-cell {
  background: var(--surface);
  padding: 1.5rem;
}

.info-cell .key {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--text-dim);
  margin-bottom: .4rem;
}

.info-cell .val {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
}

/* ─── TABLE ─── */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

thead {
  background: var(--surface2);
}

th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent2);
  padding: .9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: .75rem 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, .02);
}

td strong {
  color: var(--accent2);
}

/* ─── LIST ─── */
ul,
ol {
  padding-left: 0;
  margin: .75rem 0 1.25rem;
  list-style: none;
}

li {
  color: var(--text-muted);
  padding: .3rem 0 .3rem 1.5rem;
  position: relative;
  line-height: 1.6;
}

li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .8em;
}

ol {
  counter-reset: list;
}

ol li {
  counter-increment: list;
}

ol li::before {
  content: counter(list, decimal-leading-zero);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .05em;
}

/* ─── CODE ─── */
code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .8rem;
  background: rgba(76, 201, 240, .08);
  color: var(--accent2);
  padding: .15rem .4rem;
  border-radius: 2px;
}

.code-block {
  background: #0a0b0e;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  overflow-x: auto;
}

.code-block pre {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .8rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-all;
}

.code-block .err {
  color: var(--accent);
}

.code-block .cmd {
  color: var(--green);
}

.code-block .path {
  color: var(--accent3);
}

/* ─── STAT BARS ─── */
.stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: .75rem 0;
}

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  color: var(--text-muted);
  width: 160px;
  flex-shrink: 0;
}

.stat-bar {
  flex: 1;
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: left;
  animation: growBar 1s ease both;
}

.stat-fill.blue {
  background: var(--accent2);
}

.stat-fill.green {
  background: var(--green);
}

@keyframes growBar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.stat-pct {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  color: var(--text-dim);
  width: 36px;
  text-align: right;
}

/* ─── STEP TIMELINE ─── */
.steps {
  position: relative;
  padding-left: 2rem;
}

.steps::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.step {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}

.step::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
}

.step p {
  margin-bottom: .5rem;
}

/* ─── TAG ─── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(230, 57, 70, .1);
  border: 1px solid rgba(230, 57, 70, .25);
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 2px;
  margin: .25rem .25rem .25rem 0;
}

.tag.blue {
  background: rgba(76, 201, 240, .1);
  border-color: rgba(76, 201, 240, .25);
  color: var(--accent2);
}

.tag.green {
  background: rgba(6, 214, 160, .1);
  border-color: rgba(6, 214, 160, .25);
  color: var(--green);
}

.tag.orange {
  background: rgba(244, 162, 97, .1);
  border-color: rgba(244, 162, 97, .25);
  color: var(--accent3);
}

/* ─── DIVIDER ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  color: var(--text-dim);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  letter-spacing: .15em;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── HIGHLIGHT BOX ─── */
.highlight {
  background: rgba(76, 201, 240, .06);
  border: 1px solid rgba(76, 201, 240, .2);
  border-left: 3px solid var(--accent2);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.highlight p {
  color: var(--text);
  max-width: none;
  margin: 0;
}

.highlight.warn {
  background: rgba(244, 162, 97, .06);
  border-color: rgba(244, 162, 97, .2);
  border-left-color: var(--accent3);
}

.highlight.success {
  background: rgba(6, 214, 160, .06);
  border-color: rgba(6, 214, 160, .2);
  border-left-color: var(--green);
}

/* ─── COMPARE GRID ─── */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.compare-cell {
  background: var(--surface);
  padding: 1.5rem;
}

.compare-cell h5 {
  font-family: 'Syne', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: .75rem;
  letter-spacing: .02em;
}

.compare-cell .pro {
  color: var(--green);
  font-size: .8rem;
  font-family: 'IBM Plex Mono', monospace;
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  margin-bottom: .25rem;
}

.compare-cell .con {
  color: var(--accent);
  font-size: .8rem;
  font-family: 'IBM Plex Mono', monospace;
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  margin-bottom: .25rem;
}

.compare-cell .price {
  margin-top: .75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  color: var(--text-dim);
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

/* ─── IP/NETWORK ─── */
.network-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: .5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .8rem;
}

.network-item .net-label {
  color: var(--text-dim);
  width: 120px;
  flex-shrink: 0;
}

.network-item .net-value {
  color: var(--green);
}

/* ─── FOOTER ─── */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: -.03em;
}

footer p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: .1em;
  max-width: none;
  text-align: center;
}

/* ─── TOC SIDEBAR ─── */
.toc-wrap {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-dot {
  width: 6px;
  height: 6px;
  background: var(--border);
  border-radius: 50%;
  transition: background .2s, transform .2s;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.toc-dot:hover {
  background: var(--accent2);
  transform: scale(1.5);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .container,
  .container-wide {
    padding: 0 1.25rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .toc-wrap {
    display: none;
  }

  h2 {
    font-size: 1.8rem;
  }
}

/* ─── ANNEXE LABEL ─── */
.annexe-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  background: rgba(155, 93, 229, .15);
  border: 1px solid rgba(155, 93, 229, .3);
  color: var(--purple);
  padding: .2rem .6rem;
  border-radius: 2px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-left: .5rem;
}

/* ─── QOS TABLE SPECIFIC ─── */
.qos-table th:first-child {
  width: 120px;
}

@import url('colors.css');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg: #050a05;
  --bg2: #030803;
  --surface: #071007;
  --card: #040904;
  --card2: #001e00;
  --text: #c8ffc8;
  --muted: #80cc80;
  --dim: #3a6b3a;
  --cyan: #39ff14;
  --cyan-soft: rgba(57, 255, 20, 0.10);
  --cyan-glow: rgba(57, 255, 20, 0.25);
  --violet: #1aff7a;
  --violet-soft: rgba(26, 255, 122, 0.10);
  --emerald: #39ff14;
  --amber: #ff3030;
  --border: rgba(57, 255, 20, 0.08);
  --border-hi: rgba(57, 255, 20, 0.25);
  --mono: 'IBM Plex Mono', 'Consolas', monospace;
  --display: 'Syne', sans-serif;
  --body: 'DM Sans', sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  min-height: 100vh;
  background-image:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(57, 255, 20, 0.008) 2px,
      rgba(57, 255, 20, 0.008) 4px);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ═══════════════════════════════════════
   COVER
═══════════════════════════════════════ */
.cover {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 15% 80%, rgba(57, 255, 20, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(26, 255, 122, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(57, 255, 20, 0.03) 0%, transparent 70%),
    var(--bg2);
}

.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 20s linear infinite;
  pointer-events: none;
}

.cover::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 255, 122, 0.08), transparent 65%);
  animation: orb 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes gridScroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(60px);
  }
}

@keyframes orb {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(-30px, 20px) scale(1.08);
  }
}

.cover-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  animation: fadeSlideDown 0.6s ease both;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5);
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(57, 255, 20, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
  }
}

.cover-title-wrap {
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.7s 0.15s ease both;
}

.cover-pre {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--violet);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  opacity: 0.85;
}

.cover-title {
  font-family: var(--display);
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  display: block;
  background: linear-gradient(160deg, #c8ffc8 0%, #80cc80 35%, var(--cyan) 65%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cover-title .t2 {
  display: block;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(160deg, var(--cyan) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.cover-title .t3 {
  display: block;
  font-size: clamp(12px, 1.5vw, 16px);
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.08em;
  -webkit-text-fill-color: var(--muted);
  margin-top: 20px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.7s 0.3s ease both;
}

.cover-cell {
  background: var(--surface);
  padding: 16px 20px;
  transition: background 0.2s;
}

.cover-cell:hover {
  background: var(--card);
}

.cover-cell .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.cover-cell .val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.cover-corner {
  position: absolute;
  bottom: clamp(24px, 4vw, 48px);
  right: clamp(24px, 4vw, 48px);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-align: right;
  line-height: 1.8;
  z-index: 1;
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 clamp(16px, 3vw, 40px);
  height: 56px;
  background: rgba(5, 10, 5, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.5);
}

nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  opacity: 0.4;
}

.nav-brand {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  white-space: nowrap;
  text-shadow: 0 0 8px var(--cyan);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: blink 2s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  display: block;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--cyan);
  background: var(--cyan-soft);
  border-color: var(--border-hi);
  text-shadow: 0 0 8px var(--cyan);
}

/* ═══════════════════════════════════════
   TABLE OF CONTENTS
═══════════════════════════════════════ */
.toc-wrap {
  margin: 48px auto;
  max-width: 900px;
  padding: 0 clamp(16px, 3vw, 32px);
  animation: fadeSlideUp 0.5s ease both;
}

.toc-header {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 6px;
}

.toc-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.toc-item a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--cyan), var(--violet));
  transform: scaleY(0);
  transition: transform 0.2s;
  transform-origin: bottom;
}

.toc-item a:hover {
  background: var(--card);
  border-color: var(--border-hi);
  color: var(--text);
  padding-left: 18px;
}

.toc-item a:hover::before {
  transform: scaleY(1);
}

.toc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--cyan-soft);
  border: 1px solid var(--border-hi);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   PAGE / CONTENT WRAPPER
═══════════════════════════════════════ */
.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px) 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ═══════════════════════════════════════
   PART BLOCKS
═══════════════════════════════════════ */
.part-block {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 40px 0 20px;
  position: relative;
}

.part-block::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-hi), transparent);
  margin-left: 8px;
}

.part-lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--cyan-soft);
  border: 1px solid var(--border-hi);
  padding: 3px 10px;
  border-radius: 20px;
}

.part-title {
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   SUB-HEADINGS
═══════════════════════════════════════ */
.sh1 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sh1::before {
  content: '//';
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  font-weight: 400;
}

.sh2 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--violet);
  margin: 20px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sh2::before {
  content: '›';
  font-size: 18px;
  color: var(--violet);
}

/* ═══════════════════════════════════════
   SECTION PANELS
═══════════════════════════════════════ */
section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
  animation: fadeSlideUp 0.45s ease both;
}

section::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at top left, rgba(57, 255, 20, 0.03), transparent 50%);
  pointer-events: none;
}

section:hover {
  border-color: var(--border-hi);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.06), 0 8px 32px rgba(0, 0, 0, 0.3);
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

section:hover::before {
  opacity: 1;
}

h2 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

h2::before {
  content: '';
  width: 3px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--cyan), var(--violet));
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--cyan-glow);
}

h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
  margin: 18px 0 8px;
  letter-spacing: 0.01em;
}

p {
  color: var(--text);
  margin: 10px 0;
  font-size: 14.5px;
  line-height: 1.75;
}

/* ═══════════════════════════════════════
   LISTS
═══════════════════════════════════════ */
ul.lst,
ul {
  list-style: none;
  margin: 12px 0;
}

ul.lst li,
ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(57, 255, 20, 0.04);
  line-height: 1.6;
}

ul.lst li:last-child,
ul li:last-child {
  border-bottom: none;
}

ul.lst li::before,
ul li::before {
  content: '▸';
  color: var(--cyan);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ═══════════════════════════════════════
   TABLES
═══════════════════════════════════════ */
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.tbl thead tr {
  background: rgba(57, 255, 20, 0.05);
}

.tbl th {
  padding: 11px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  border-bottom: 1px solid var(--border-hi);
  text-align: left;
}

.tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
  line-height: 1.55;
}

.tbl tbody tr:hover td {
  background: rgba(57, 255, 20, 0.025);
}

.tbl .cat {
  font-weight: 600;
  color: var(--violet);
  font-size: 13px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   PILLS / TAGS
═══════════════════════════════════════ */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.18s;
  cursor: default;
}

.pill:hover {
  border-color: var(--border-hi);
  color: var(--text);
  background: var(--cyan-soft);
}

/* ═══════════════════════════════════════
   CODE / INLINE CODE
═══════════════════════════════════════ */
.ic {
  display: inline;
  font-family: var(--mono);
  font-size: 12.5px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.18);
  color: var(--cyan);
  padding: 1px 7px;
  border-radius: 5px;
}

.code {
  display: block;
  background: #020602;
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  overflow-x: auto;
  margin: 14px 0;
  line-height: 1.65;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(57, 255, 20, 0.03);
}

pre,
code {
  font-family: var(--mono);
  font-size: 13px;
  background: #020602;
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--cyan);
  display: block;
  overflow-x: auto;
  margin: 12px 0;
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   COMMAND / IPROW TABLES
═══════════════════════════════════════ */
.iptbl {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.iptbl th {
  background: rgba(26, 255, 122, 0.06);
  padding: 9px 13px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.iptbl td {
  padding: 9px 13px;
  border-bottom: 1px solid var(--border);
}

.iptbl tr:last-child td {
  border-bottom: none;
}

.iptbl .ipk {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--cyan);
}

.iptbl .ipv {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ═══════════════════════════════════════
   CARDS / CCARD
═══════════════════════════════════════ */
.cgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ccard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.22s;
  position: relative;
}

.ccard::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transition: transform 0.25s;
}

.ccard:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 16px rgba(57, 255, 20, 0.06);
}

.ccard:hover::after {
  transform: scaleX(1);
}

.ccard-head {
  padding: 12px 15px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
  background: rgba(57, 255, 20, 0.04);
  border-bottom: 1px solid var(--border);
  text-shadow: 0 0 6px var(--cyan);
}

.ccard-body {
  padding: 14px 15px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   BOXES (note / warn)
═══════════════════════════════════════ */
.box {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.box.note {
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid rgba(57, 255, 20, 0.2);
}

.box.warn {
  background: rgba(255, 48, 48, 0.05);
  border: 1px solid rgba(255, 48, 48, 0.2);
}

.box-icon {
  font-size: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}

.box.note .box-icon {
  color: var(--cyan);
}

.box.warn .box-icon {
  color: var(--amber);
}

.box-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.box-title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.box.note .box-title {
  color: var(--cyan);
}

.box.warn .box-title {
  color: var(--amber);
}

.box-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.box.note .box-body p {
  color: #c8ffc8;
}

.box.warn .box-body p {
  color: #ffb3b3;
}

.box-body .code {
  font-size: 12.5px;
  margin: 8px 0 0;
}

/* ═══════════════════════════════════════
   TREE
═══════════════════════════════════════ */
.tree {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  background: #020602;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  line-height: 1.9;
  margin: 14px 0;
  overflow-x: auto;
}

/* ═══════════════════════════════════════
   LESSON BLOCKS
═══════════════════════════════════════ */
.lgrid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.lesson {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.lesson:hover {
  border-color: var(--border-hi);
}

.lesson-title {
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  background: rgba(57, 255, 20, 0.04);
  text-shadow: 0 0 6px var(--cyan);
}

.lesson-body {
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   MISC
═══════════════════════════════════════ */
.br {
  font-weight: 600;
  color: var(--text);
}

.bt {
  font-weight: 700;
  color: var(--cyan);
}

.c {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--cyan);
  background: rgba(57, 255, 20, 0.07);
  padding: 1px 6px;
  border-radius: 4px;
}

.lf {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* ═══════════════════════════════════════
   FOOTNOTES
═══════════════════════════════════════ */
.footnotes {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}

.fn-title {
  padding: 13px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(57, 255, 20, 0.04);
  border-bottom: 1px solid var(--border);
}

.fn {
  display: flex;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
  transition: background 0.15s;
}

.fn:last-child {
  border-bottom: none;
}

.fn:hover {
  background: rgba(57, 255, 20, 0.015);
}

.fn-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--violet);
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
  min-width: 40px;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px clamp(20px, 4vw, 48px);
  margin-top: 60px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--dim);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  opacity: 0.3;
}

.fa {
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 8px var(--cyan);
}

.fb {
  color: var(--violet);
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.page>div {
  animation: fadeSlideUp 0.45s ease both;
}

.page>div:nth-child(1) {
  animation-delay: 0.05s;
}

.page>div:nth-child(2) {
  animation-delay: 0.10s;
}

.page>div:nth-child(3) {
  animation-delay: 0.15s;
}

.page>div:nth-child(4) {
  animation-delay: 0.20s;
}

.page>div:nth-child(5) {
  animation-delay: 0.25s;
}

.page>div:nth-child(6) {
  animation-delay: 0.30s;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .cover-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cover-title {
    font-size: clamp(44px, 11vw, 70px);
  }

  .cgrid {
    grid-template-columns: 1fr;
  }

  .tbl {
    font-size: 12.5px;
  }

  .tbl th,
  .tbl td {
    padding: 8px 10px;
  }

  nav {
    height: auto;
    padding: 10px 14px;
    flex-wrap: wrap;
  }

  .nav-links {
    gap: 1px;
  }

  .nav-links a {
    font-size: 11.5px;
    padding: 5px 8px;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 6px;
  }

  .part-title {
    font-size: clamp(18px, 5vw, 26px);
  }
}

@media (max-width: 520px) {
  .cover-grid {
    grid-template-columns: 1fr;
  }

  .toc-grid {
    grid-template-columns: 1fr;
  }

  .pills {
    gap: 5px;
  }

  .pill {
    font-size: 11.5px;
    padding: 4px 10px;
  }
}

/* ═══════════════════════════════════════
   VERTICAL TREE COMPONENT
═══════════════════════════════════════ */
.vtree-wrap {
  margin: 18px 0;
  padding: 24px 28px;
  background: #020602;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.vtree-wrap::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.04), transparent 70%);
  pointer-events: none;
}

.vtree {
  position: relative;
}

.vt-root {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(57, 255, 20, 0.07);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 10px;
  margin-bottom: 6px;
  width: fit-content;
  animation: fadeSlideLeft 0.4s ease both;
}

.vt-root-icon {
  font-size: 20px;
  color: var(--cyan);
  line-height: 1;
  filter: drop-shadow(0 0 6px var(--cyan));
}

.vt-root-label {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px var(--cyan);
}

.vt-root-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.vt-children {
  padding-left: 20px;
  position: relative;
  margin-top: 4px;
}

.vt-children::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), rgba(57, 255, 20, 0.1));
  border-radius: 2px;
}

.vt-group {
  position: relative;
  margin-top: 6px;
  animation: fadeSlideLeft 0.4s ease both;
}

.vt-group:nth-child(1) {
  animation-delay: 0.05s;
}

.vt-group:nth-child(2) {
  animation-delay: 0.10s;
}

.vt-group:nth-child(3) {
  animation-delay: 0.15s;
}

.vt-group:nth-child(4) {
  animation-delay: 0.20s;
}

.vt-group:nth-child(5) {
  animation-delay: 0.25s;
}

.vt-group:nth-child(6) {
  animation-delay: 0.30s;
}

.vt-group:nth-child(7) {
  animation-delay: 0.35s;
}

.vt-group:nth-child(8) {
  animation-delay: 0.40s;
}

.vt-group:nth-child(9) {
  animation-delay: 0.45s;
}

.vt-branch {
  display: flex;
  align-items: center;
  gap: 0;
}

.vt-connector {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.vt-line {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(57, 255, 20, 0.4));
  border-radius: 2px;
}

.vt-line.short {
  background: linear-gradient(90deg, rgba(57, 255, 20, 0.5), rgba(57, 255, 20, 0.1));
}

.vt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
}

.vt-group:hover .vt-dot {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.vt-folder {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: default;
  margin-left: 8px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.vt-folder::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px 0 0 2px;
}

.vt-folder[data-color="cyan"]::after {
  background: var(--cyan);
}

.vt-folder[data-color="violet"]::after {
  background: var(--violet);
}

.vt-folder[data-color="emerald"]::after {
  background: var(--cyan);
}

.vt-folder[data-color="amber"]::after {
  background: var(--amber);
}

.vt-folder[data-color="cyan"]:hover {
  border-color: rgba(57, 255, 20, 0.3);
  background: rgba(57, 255, 20, 0.06);
}

.vt-folder[data-color="violet"]:hover {
  border-color: rgba(26, 255, 122, 0.3);
  background: rgba(26, 255, 122, 0.06);
}

.vt-folder[data-color="emerald"]:hover {
  border-color: rgba(57, 255, 20, 0.3);
  background: rgba(57, 255, 20, 0.06);
}

.vt-folder[data-color="amber"]:hover {
  border-color: rgba(255, 48, 48, 0.3);
  background: rgba(255, 48, 48, 0.06);
}

.vt-folder-icon {
  font-size: 11px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.vt-folder:hover .vt-folder-icon {
  transform: translateX(2px);
}

.vt-folder-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.vt-folder[data-color="cyan"] .vt-folder-label {
  color: var(--cyan);
}

.vt-folder[data-color="violet"] .vt-folder-label {
  color: var(--violet);
}

.vt-folder[data-color="emerald"] .vt-folder-label {
  color: var(--cyan);
}

.vt-folder[data-color="amber"] .vt-folder-label {
  color: var(--amber);
}

.vt-leaves {
  padding-left: 49px;
  position: relative;
  margin-top: 3px;
}

.vt-leaves::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(57, 255, 20, 0.3), transparent);
  border-radius: 1px;
}

.vt-leaf {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  position: relative;
  cursor: default;
  transition: background 0.15s;
  border-radius: 6px;
  margin-top: 2px;
}

.vt-leaf::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 50%;
  width: 22px;
  height: 1px;
  background: rgba(57, 255, 20, 0.25);
}

.vt-leaf:hover {
  background: rgba(57, 255, 20, 0.03);
}

.vt-leaf-icon {
  color: var(--dim);
  font-size: 12px;
  flex-shrink: 0;
}

.vt-leaf:hover .vt-leaf-icon {
  color: var(--cyan);
}

.vt-leaf-label {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.vt-leaf:hover .vt-leaf-label {
  color: var(--text);
}

/* ─── scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--dim);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

/* ─── selection ─── */
::selection {
  background: rgba(57, 255, 20, 0.25);
  color: #fff;
}

#scrollTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: rgba(5, 10, 5, 0.9);
  border: 1px solid var(--accent1);
  border-radius: 14px;
  color: var(--accent1);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.3);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  pointer-events: none;
}

#scrollTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#scrollTop:hover {
  background: var(--accent1);
  color: var(--bg);
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.6);
  transform: translateY(-3px);
}

.btn-experiences {
  position: fixed;
  top: 68px;
  /* 56px navbar + 12px marge */
  right: 16px;
  z-index: 99;

  display: inline-flex;
  align-items: center;

  padding: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: clamp(10px, 2vw, 14px);
  letter-spacing: 0.15em;

  color: var(--cyan);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  text-decoration: none;

  background: rgba(5, 10, 5, 0.85);
  backdrop-filter: blur(8px);
  text-shadow: 0 0 6px var(--cyan);

  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Hover (desktop seulement) */
@media (hover: hover) {
  .btn-experiences:hover {
    background: rgba(57, 255, 20, 0.12);
    border-color: var(--cyan);
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.2);
    transform: translateX(-2px);
  }
}

/* Tablette */
@media (max-width: 768px) {
  .btn-experiences {
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .btn-experiences {
    top: auto;
    bottom: 1rem;
    right: 50%;
    transform: translateX(50%);
    font-size: 11px;
    padding: 0.5rem 0.9rem;
  }
}

.annexe-tag {
  cursor: pointer;
  position: relative;
  z-index: 10;
  display: inline-block;
}

.annexe-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.annexe-modal.active {
  display: flex;
}

.annexe-content {
  background: var(--surface);
  border: 1px solid var(--accent2);
  max-width: 900px;
  max-height: 90vh;
  overflow: auto;
  padding: 2rem;
  position: relative;
}

.annexe-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.annexe-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.2rem 0.7rem;
}