/* ============================================================
     COINBOSA — thème sombre par défaut + thème clair accessible.
     Or #CB9211 (accent précieux, rare) · Bleu #015E99 (profondeur)
     Fond navy #060d15 / #0a141f. Couleurs d'état séparées de la marque.
     ============================================================ */

  :root, :root[data-theme="dark"] {
    --bg:        #060d15;
    --bg-soft:   #0a141f;
    --panel:     #0d1826;
    --panel-2:   #10202f;
    --text:      #eaf1f8;
    --muted:     #9fb2c4;
    --faint:     #8193a8; /* éclairci pour ≥4.5:1 sur les fonds sombres (hero-note/soon) */
    --border:    rgba(255,255,255,0.09);
    --border-2:  rgba(255,255,255,0.16);
    --gold:      #CB9211;
    --gold-soft: #e6b23e;
    --blue:      #015E99;
    --blue-soft: #3a9bd8;
    /* états produits — distincts de l'accent de marque */
    --st-live:     #37d98a;
    --st-building: #e6a733;
    --st-soon:     #96a9bd;
    --st-external: #3a9bd8;
    --ring:      #e6b23e;
    --hero-glow-a: rgba(203,146,17,0.18);
    --hero-glow-b: rgba(1,94,153,0.22);
    --card-hover: rgba(203,146,17,0.06);
    color-scheme: dark;
  }

  :root[data-theme="light"] {
    --bg:        #eef3f9;
    --bg-soft:   #ffffff;
    --panel:     #ffffff;
    --panel-2:   #f3f7fb;
    --text:      #0c1a28;
    --muted:     #43566a;
    --faint:     #566a7e; /* assombri pour ≥4.5:1 sur les fonds clairs (hero-note/soon) */
    --border:    rgba(9,24,40,0.12);
    --border-2:  rgba(9,24,40,0.22);
    --gold:      #8f6409;
    --gold-soft: #a5760f;
    --blue:      #015E99;
    --blue-soft: #0a6cad;
    --st-live:     #12905a;
    --st-building: #9a6811;
    --st-soon:     #566a7e;
    --st-external: #0a6cad;
    --ring:      #015E99;
    --hero-glow-a: rgba(203,146,17,0.14);
    --hero-glow-b: rgba(1,94,153,0.14);
    --card-hover: rgba(1,94,153,0.05);
    color-scheme: light;
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    line-height: 1.6;
    font-size: 17px;
    letter-spacing: -0.005em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .4s ease, color .4s ease;
  }

  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }

  /* Focus visible — accessibilité */
  a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 3px;
    border-radius: 6px;
  }

  .skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 200;
    background: var(--gold);
    color: #08111c;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    transition: top .2s ease;
  }
  .skip-link:focus { top: 12px; }

  .wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

  /* ---------- typographie d'affichage ---------- */
  .eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: .78rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold-soft);
  }
  .eyebrow::before {
    content: ""; width: 26px; height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
  }
  h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
  .grad {
    background: linear-gradient(100deg, var(--gold-soft), var(--blue-soft));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--gold-soft);
  }
  .lead { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.28rem); line-height: 1.55; }

  /* ---------- boutons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-weight: 700; font-size: .98rem;
    padding: 14px 24px; border-radius: 12px;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .18s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
    white-space: nowrap;
  }
  .btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: 10px; }
  .btn-primary {
    background: linear-gradient(100deg, var(--gold), #d9a635);
    color: #08111c;
    box-shadow: 0 8px 26px -12px rgba(203,146,17,.7);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(203,146,17,.75); }
  .btn-ghost {
    background: transparent; color: var(--text);
    border-color: var(--border-2);
  }
  .btn-ghost:hover { border-color: var(--gold); background: var(--card-hover); transform: translateY(-2px); }

  /* ============================================================
     EN-TÊTE
     ============================================================ */
  .hdr {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background-color .3s ease;
  }
  .hdr.scrolled { border-bottom-color: var(--border); }
  .hdr-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 12px clamp(18px, 4vw, 40px);
    display: flex; align-items: center; gap: 20px;
  }
  .brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.02em; }
  .brand .logo {
    width: 34px; height: 34px; border-radius: 9px; object-fit: contain;
    background: rgba(203,146,17,0.10);
    border: 1px solid var(--border);
    padding: 3px;
  }
  .brand-name { font-size: 1.12rem; }
  .brand-name b { color: var(--gold-soft); }

  .nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
  .nav a {
    color: var(--muted); font-weight: 600; font-size: .95rem;
    padding: 8px 13px; border-radius: 9px;
    transition: color .2s ease, background-color .2s ease;
  }
  .nav a:hover { color: var(--text); background: var(--card-hover); }

  .hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

  .theme-toggle {
    width: 40px; height: 40px; border-radius: 10px;
    display: inline-grid; place-items: center;
    background: transparent; color: var(--muted);
    border: 1px solid var(--border-2); cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
  }
  .theme-toggle:hover { color: var(--gold-soft); border-color: var(--gold); }
  .theme-toggle svg { width: 19px; height: 19px; }
  .theme-toggle .i-sun { display: none; }
  :root[data-theme="light"] .theme-toggle .i-sun { display: block; }
  :root[data-theme="light"] .theme-toggle .i-moon { display: none; }

  .menu-btn {
    display: none;
    width: 42px; height: 42px; border-radius: 10px;
    background: transparent; border: 1px solid var(--border-2);
    color: var(--text); cursor: pointer;
    align-items: center; justify-content: center;
  }
  .menu-btn svg { width: 22px; height: 22px; }

  .mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    padding: 14px clamp(18px, 4vw, 40px) 22px;
  }
  .mobile-menu a {
    display: block; padding: 13px 6px;
    font-weight: 600; color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu a:last-child { border-bottom: 0; }
  .mobile-menu .btn { width: 100%; margin-top: 14px; }

  @media (max-width: 860px) {
    .nav, .hdr-actions .cta-nav { display: none; }
    .menu-btn { display: inline-flex; }
    .mobile-menu.open { display: block; }
  }

  /* ============================================================
     HERO — réseau de nœuds animé (canvas)
     ============================================================ */
  .hero {
    position: relative;
    min-height: 100dvh;
    display: flex; align-items: center;
    padding: 120px 0 90px;
    overflow: hidden;
  }
  #node-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
  .hero::before {
    content: ""; position: absolute; z-index: 0; inset: 0;
    background:
      radial-gradient(60% 55% at 78% 18%, var(--hero-glow-a), transparent 62%),
      radial-gradient(55% 60% at 12% 92%, var(--hero-glow-b), transparent 60%);
    pointer-events: none;
  }
  .hero::after {
    content: ""; position: absolute; z-index: 1; inset: auto 0 0 0; height: 180px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
  }
  .hero-inner { position: relative; z-index: 2; max-width: 900px; }
  .hero h1 {
    font-size: clamp(2.5rem, 7.2vw, 5.6rem);
    margin: 22px 0 24px;
    letter-spacing: -0.04em;
  }
  .hero .lead { max-width: 660px; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
  .hero-note {
    margin-top: 30px; display: flex; align-items: flex-start; gap: 10px;
    color: var(--faint); font-size: .86rem; max-width: 560px; line-height: 1.5;
  }
  .hero-note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--gold-soft); }

  /* ============================================================
     MARQUEE écosystème
     ============================================================ */
  .marquee {
    position: relative; z-index: 3;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    overflow: hidden; padding: 18px 0;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .marquee-track {
    display: inline-flex; align-items: center; gap: 46px;
    white-space: nowrap; will-change: transform;
    animation: scroll-x 42s linear infinite;
  }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .marquee-item { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 700; letter-spacing: .01em; }
  .marquee-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: .8; }
  .marquee-item .cat { color: var(--faint); font-weight: 600; font-size: .82rem; }
  @keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ============================================================
     SECTIONS (scènes)
     ============================================================ */
  section[id] { scroll-margin-top: 84px; }
  section.scene { padding: clamp(80px, 12vh, 150px) 0; }
  .scene-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 68px); }
  .scene-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 18px 0 20px; }

  /* Vision — colonne collante + étapes qui défilent */
  .vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
  .vision-sticky { position: sticky; top: 110px; }
  .vision-sticky h2 { font-size: clamp(2rem, 5.2vw, 3.6rem); margin: 18px 0 0; }
  .vision-steps { display: flex; flex-direction: column; gap: 20px; }
  .vision-step {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 18px; padding: 26px 28px;
    position: relative; overflow: hidden;
  }
  .vision-step::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
    background: linear-gradient(var(--gold), var(--blue));
    opacity: .8;
  }
  .vision-step .n { font-size: .8rem; font-weight: 800; color: var(--gold-soft); letter-spacing: .1em; }
  .vision-step p { margin: 8px 0 0; font-size: 1.12rem; color: var(--text); line-height: 1.5; }
  @media (max-width: 820px) {
    .vision-grid { grid-template-columns: 1fr; }
    .vision-sticky { position: static; }
  }

  /* Écosystème — grille produits */
  .products { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
  .card {
    position: relative;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 18px; padding: 26px 26px 24px;
    display: flex; flex-direction: column; min-height: 208px;
    transition: transform .22s ease, border-color .22s ease, box-shadow .3s ease, background-color .3s ease;
  }
  .card::after {
    content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1px;
    background: linear-gradient(130deg, var(--gold), transparent 42%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .25s ease; pointer-events: none;
  }
  .card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 20px 44px -22px rgba(0,0,0,.6);
    background: color-mix(in srgb, var(--panel) 90%, var(--card-hover));
  }
  .card:hover::after { opacity: 1; }
  .card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .card-cat { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
  .card h3 { font-size: 1.42rem; letter-spacing: -0.02em; }
  .card p { margin: 10px 0 0; color: var(--muted); font-size: .98rem; }
  .card .card-link {
    margin-top: auto; padding-top: 16px;
    color: var(--gold-soft); font-weight: 700; font-size: .92rem;
    display: inline-flex; align-items: center; gap: 7px;
  }
  .card .card-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
  .card:hover .card-link svg { transform: translateX(3px); }

  /* Pastille d'état */
  .badge {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .74rem; font-weight: 700; letter-spacing: .02em;
    padding: 5px 11px; border-radius: 999px;
    border: 1px solid transparent; white-space: nowrap;
  }
  .badge .pip { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .badge.st-live     { color: var(--st-live);     background: color-mix(in srgb, var(--st-live) 14%, transparent);     border-color: color-mix(in srgb, var(--st-live) 34%, transparent); }
  .badge.st-building { color: var(--st-building); background: color-mix(in srgb, var(--st-building) 14%, transparent); border-color: color-mix(in srgb, var(--st-building) 34%, transparent); }
  .badge.st-soon     { color: var(--st-soon);     background: color-mix(in srgb, var(--st-soon) 15%, transparent);     border-color: color-mix(in srgb, var(--st-soon) 32%, transparent); }
  .badge.st-external { color: var(--st-external); background: color-mix(in srgb, var(--st-external) 14%, transparent); border-color: color-mix(in srgb, var(--st-external) 34%, transparent); }
  .badge.st-live .pip { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.35 } }

  /* ---------- SOCLE ---------- */
  .socle { position: relative; }
  .socle .scene-head { max-width: 820px; }
  .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
  .stat {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px 22px;
  }
  .stat .k { font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
  .stat .v { margin-top: 10px; font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
  .stat .v small { display: block; font-size: .82rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
  .stat.hl { border-color: color-mix(in srgb, var(--gold) 42%, transparent); background: color-mix(in srgb, var(--panel) 82%, var(--card-hover)); }
  .stat.hl .v { color: var(--gold-soft); }
  /* ---------- CTA REJOINDRE ---------- */
  .join {
    position: relative; overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: clamp(44px, 7vw, 86px) clamp(26px, 5vw, 60px);
    text-align: center;
    background:
      radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%),
      var(--panel);
  }
  .join h2 { font-size: clamp(2rem, 5.4vw, 3.4rem); max-width: 720px; margin: 16px auto 18px; }
  .join .lead { max-width: 560px; margin: 0 auto; }
  .join-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

  /* ============================================================
     PIED DE PAGE
     ============================================================ */
  footer.ft { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: clamp(50px, 8vh, 110px); }
  .ft-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding: clamp(48px, 7vw, 80px) 0 40px; }
  .ft-brand .brand { margin-bottom: 16px; }
  .ft-brand p { color: var(--muted); max-width: 320px; font-size: .96rem; }
  .ft-socials { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
  .ft-socials a {
    width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center;
    border: 1px solid var(--border-2); color: var(--muted);
    transition: color .2s ease, border-color .2s ease, transform .2s ease, background-color .2s ease;
  }
  .ft-socials a:hover { color: var(--gold-soft); border-color: var(--gold); transform: translateY(-2px); background: var(--card-hover); }
  .ft-socials svg { width: 19px; height: 19px; }
  .ft-col h3 { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; }
  .ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
  .ft-col a, .ft-col span { color: var(--muted); font-size: .95rem; }
  .ft-col a:hover { color: var(--gold-soft); }
  .ft-col .soon { color: var(--faint); font-size: .88rem; }
  .ft-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0 34px;
    display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between;
  }
  .ft-bottom p { margin: 0; color: var(--faint); font-size: .88rem; }
  .ft-bottom .legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  @media (max-width: 820px) { .ft-top { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
  @media (max-width: 520px) { .ft-top { grid-template-columns: 1fr; } }

  /* ============================================================
     RÉVÉLATIONS AU DÉFILEMENT
     ============================================================ */
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
  .reveal.in { opacity: 1; transform: none; }

  /* ============================================================
     REDUCED MOTION — on coupe tout mouvement
     ============================================================ */
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .marquee-track { animation: none !important; }
    .badge.st-live .pip { animation: none !important; }
    .btn, .card { transition: none !important; }
    .card:hover, .btn:hover { transform: none !important; }
  }

  /* ============================================================
     PAGES INTÉRIEURES
     Ajouté pour le passage en site multi-pages. N'utilise que les
     jetons définis plus haut : aucune couleur en dur, donc les deux
     thèmes suivent sans traitement particulier.
     ============================================================ */

  /* ---------- en-tête de page ---------- */
  .page-head { padding: clamp(96px, 13vh, 150px) 0 clamp(34px, 5vw, 56px); position: relative; }
  .page-head::after {
    content: ""; position: absolute; inset: auto 0 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-2) 22%, var(--border-2) 78%, transparent);
  }
  .page-head h1 {
    font-size: clamp(2.1rem, 5.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.02em;
    margin: 14px 0 0; text-wrap: balance;
  }
  .page-head .lead { margin-top: 18px; max-width: 62ch; }

  /* ---------- fil d'Ariane ---------- */
  .fil { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--faint); margin-bottom: 4px; }
  .fil a { color: var(--faint); }
  .fil a:hover { color: var(--gold-soft); }
  .fil span[aria-hidden] { opacity: .55; }

  /* ---------- colonne de texte lisible ---------- */
  .prose { max-width: 68ch; }
  .prose > * + * { margin-top: 18px; }
  .prose p { color: var(--muted); font-size: 1.03rem; line-height: 1.72; }
  .prose h2, .prose h3 {
    font-size: clamp(1.15rem, 2.6vw, 1.42rem); margin-top: 40px; letter-spacing: -.01em;
  }
  .prose strong { color: var(--text); font-weight: 650; }
  .prose ul { margin-left: 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
  .prose li + li { margin-top: 8px; }

  /* ---------- tableau de faits clé/valeur ---------- */
  .kv { width: 100%; border-collapse: collapse; font-size: .97rem; }
  .kv th, .kv td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
  .kv th { color: var(--muted); font-weight: 600; white-space: nowrap; width: 34%; }
  .kv td { color: var(--text); font-variant-numeric: tabular-nums; }
  .kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
  .kv-wrap {
    background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
    overflow-x: auto; margin-top: 26px;
  }

  /* ---------- code en ligne ---------- */
  /* Sans cette règle, les <code> à l'intérieur d'un paragraphe ou d'un tableau
     s'affichaient exactement comme du texte courant : le lecteur ne pouvait pas
     distinguer un nom de méthode d'un mot ordinaire. */
  :not(pre) > code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .89em;
    padding: 2px 6px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--blue) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--blue) 26%, transparent);
    color: var(--text);
    word-break: break-word;
  }

  /* ---------- bloc de code copiable ---------- */
  .code {
    position: relative; background: var(--panel); border: 1px solid var(--border);
    border-radius: 16px; margin-top: 20px; overflow: hidden;
  }
  .code-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 14px 11px 18px; border-bottom: 1px solid var(--border);
    background: var(--panel-2);
  }
  .code-head span { font-size: .82rem; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
  .code pre {
    margin: 0; padding: 18px; overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .875rem; line-height: 1.65; color: var(--text);
  }
  .copy {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px;
    border-radius: 8px; border: 1px solid var(--border-2); background: transparent;
    color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer;
    transition: color .18s, border-color .18s, background .18s;
  }
  .copy:hover { color: var(--gold-soft); border-color: var(--gold); background: var(--card-hover); }
  .copy svg { width: 14px; height: 14px; }
  .copy.done { color: var(--st-live); border-color: var(--st-live); }

  /* ---------- étapes numérotées ---------- */
  .steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; counter-reset: pas; }
  .steps > li {
    display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start;
    counter-increment: pas;
  }
  .steps > li::before {
    content: counter(pas); width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center; font-size: .92rem; font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: color-mix(in srgb, var(--gold) 16%, transparent);
    color: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  }
  .steps h3 { font-size: 1.06rem; margin: 4px 0 0; }
  .steps p { color: var(--muted); margin-top: 7px; font-size: .98rem; line-height: 1.65; }
  .steps .code { margin-top: 14px; }

  /* ---------- encadré d'avertissement sobre ---------- */
  .note {
    display: flex; gap: 13px; align-items: flex-start; margin-top: 26px;
    padding: 17px 19px; border-radius: 14px;
    background: color-mix(in srgb, var(--blue) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
    color: var(--muted); font-size: .96rem; line-height: 1.62;
  }
  .note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--blue-soft); }
  .note b { color: var(--text); }

  /* ---------- grille deux colonnes ---------- */
  .duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; margin-top: 30px; }
  .duo > article {
    background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
    padding: clamp(22px, 3vw, 30px);
  }
  .duo h3 { font-size: 1.08rem; margin: 0 0 10px; }
  .duo p { color: var(--muted); font-size: .97rem; line-height: 1.65; }

  /* ---------- page active dans la navigation ---------- */
  .nav a[aria-current="page"], .mobile-menu a[aria-current="page"] { color: var(--gold-soft); }
  .nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
    border-radius: 2px; background: var(--gold);
  }
  .nav a { position: relative; }

  /* ---------- bandeau de fin de page ---------- */
  .suite {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 20px; margin-top: clamp(46px, 7vw, 76px); padding-top: 32px;
    border-top: 1px solid var(--border);
  }
  .suite p { color: var(--muted); font-size: 1rem; max-width: 46ch; }
  .suite strong { color: var(--text); display: block; font-size: 1.1rem; margin-bottom: 5px; font-weight: 650; }

  /* ============================================================
     SCÈNES 3D
     Le canvas .hero #node-net existait déjà pour l'ancienne animation ; il
     porte maintenant la lune. La section planète est nouvelle.
     ============================================================ */
  .voile-hero {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(100deg,
      color-mix(in srgb, var(--bg) 94%, transparent) 0%,
      color-mix(in srgb, var(--bg) 84%, transparent) 26%,
      color-mix(in srgb, var(--bg) 42%, transparent) 48%,
      transparent 68%);
  }
  @media (max-width: 900px) {
    .voile-hero {
      background: linear-gradient(180deg, transparent 0%,
        color-mix(in srgb, var(--bg) 36%, transparent) 38%,
        color-mix(in srgb, var(--bg) 90%, transparent) 60%,
        var(--bg) 100%);
    }
  }
  .hero-inner { position: relative; z-index: 2; }

  .planete {
    position: relative; min-height: 92svh; display: grid; align-items: center;
    overflow: hidden; border-top: 1px solid var(--border);
  }
  #anneaux { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
  .voile-planete {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(260deg,
      color-mix(in srgb, var(--bg) 94%, transparent) 0%,
      color-mix(in srgb, var(--bg) 84%, transparent) 24%,
      color-mix(in srgb, var(--bg) 40%, transparent) 47%,
      transparent 68%);
  }
  @media (max-width: 900px) {
    .voile-planete {
      background: linear-gradient(180deg, transparent 0%,
        color-mix(in srgb, var(--bg) 38%, transparent) 40%,
        color-mix(in srgb, var(--bg) 92%, transparent) 62%,
        var(--bg) 100%);
    }
  }
  .planete-in { position: relative; z-index: 2; padding: 104px 0; }
  .planete-in .dedans { display: flex; justify-content: flex-end; }
  .planete-in .col { max-width: 560px; }
  @media (max-width: 900px) {
    .planete-in { padding: 58vh 0 76px; }
    .planete-in .dedans { justify-content: flex-start; }
  }
  .orbites { list-style: none; margin: 26px 0 0; padding: 0; }
  .orbites li {
    display: grid; grid-template-columns: 12px 1fr auto; align-items: center;
    gap: 14px; padding: 13px 0; border-top: 1px solid var(--border); font-size: .97rem;
  }
  .orbites li:last-child { border-bottom: 1px solid var(--border); }
  .orbites .bille { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
  .orbites b { font-weight: 650; color: var(--text); }
  .orbites .etat {
    font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    font-weight: 700; color: var(--faint); white-space: nowrap;
  }
