/* ==========================================================================
   Démo « Hub + extensions » — page JARVIS (/plateforme/).
   Trois blocs [data-demo="hub"] : cœur (le boîtier, un Hub par lieu), IA, ensemble (l'offre vit sur /offre/). Données d'exemple.
   Sans JavaScript, chaque bloc reste complet; le mouvement vit sous html.fx.
   ========================================================================== */
[data-demo="hub"] {
  --hb-panel: #0b0b0c;
  --hb-card: linear-gradient(160deg, #141414f2, #070707f7);
  --hb-line: #ffffff14;
  --hb-txt: #c4c4cc;
  --hb-ok: #34d399; --hb-warn: #fbbf24; --hb-bad: #f87171;
  max-width: 76rem; margin: 0 auto; color: #f5f5f7;
}
[data-demo="hub"] .hb-i { width: 18px; height: 18px; flex: none; }
.hb-sect { overflow: hidden; }

/* ---------- Cadre en cristal doré ---------- */
[data-demo="hub"] .hb-frame {
  position: relative; border-radius: 22px; background: var(--mode-panel-solid);
  box-shadow: 0 40px 90px #000, 0 0 0 1px #ffffff14, var(--mode-spec);
}
[data-demo="hub"] .hb-frame::before {
  content: ""; position: absolute; inset: -1px; z-index: 3; pointer-events: none; border: 18px solid transparent; border-radius: 22px;
  border-image: url("/media/modes/rim.png") 50 / 18px / 0 stretch; filter: var(--mode-rim-filter);
}
:root[data-mode="base"] [data-demo="hub"] .hb-frame::before { border: 1px solid var(--mode-line); border-image: none; filter: none; inset: 0; }

/* Puce d'extension */
[data-demo="hub"] .hb-x {
  display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .7rem .38rem .5rem; border-radius: 999px;
  background: color-mix(in srgb, var(--x) 9%, #0a0a0a); border: 1px solid color-mix(in srgb, var(--x) 34%, transparent);
  font-size: .8rem; color: #f2f2f4; white-space: nowrap;
}
[data-demo="hub"] .hb-x .hb-i { width: 15px; height: 15px; color: var(--x); }
[data-demo="hub"] .hb-x b { font-weight: 600; }

/* ==========================================================================
   1. Le Hub, cœur de JARVIS : le bel objet, ses fils de lumière, un Hub par lieu
   ========================================================================== */
@font-face {
  font-family: "Jarvis Manrope";
  src: url("/assets/fonts/manrope/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
.hb-coeur { display: grid; gap: 2rem; }
.hb-coeur-head { max-width: 47rem; }
.hb-coeur-head h2 { margin: 1rem 0 0; font-weight: 650; font-size: clamp(2rem, 3.6vw, 3.1rem); letter-spacing: -.035em; line-height: 1.08; }
.hb-lead { color: #c9c9d0; margin: 1.2rem 0 0; font-size: 1.04rem; line-height: 1.65; }
.hb-live { display: inline-flex; align-items: center; gap: .55rem; font: 500 .64rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #b9b9c2; }
.hb-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--hb-ok); box-shadow: 0 0 0 4px #34d39922, 0 0 10px #34d399; }

/* ---------- La scène : le boîtier en photo ---------- */
.hb-scene { --pad: 14px; padding: var(--pad); }
.hb-sc-photo { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #050505; isolation: isolate; }
.hb-sc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-sc-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #000000b8 0%, #0000004d 26%, #0000 46%, #0000 60%, #000000a6 76%, #000000d6 100%),
              linear-gradient(0deg, #000000c4 0%, #0000 32%);
}
.hb-sc-halo {
  position: absolute; left: var(--halo-x); top: var(--halo-y); width: 74%; aspect-ratio: 2.3 / 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; opacity: .6; will-change: opacity;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mode-glow) 50%, transparent) 0%, color-mix(in srgb, var(--mode-glow) 16%, transparent) 55%, transparent 100%);
}
.hb-sc-led {
  position: absolute; left: var(--led-x); top: var(--led-y); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: #fff8e8; box-shadow: 0 0 6px 2px color-mix(in srgb, var(--gold-soft) 90%, transparent), 0 0 28px 10px color-mix(in srgb, var(--mode-glow) 45%, transparent);
}
.fx .hb-coeur .hb-sc-halo { animation: hbBreath 6.5s ease-in-out infinite; }
.fx .hb-coeur .hb-sc-led { animation: hbLed 6.5s ease-in-out infinite; }
@keyframes hbBreath { 0%, 100% { opacity: .36; } 50% { opacity: .85; } }
@keyframes hbLed { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
:root[data-mode="base"] .hb-sc-halo { opacity: .3; }

/* Fils de lumière (viewBox 1600 × 900, mêmes proportions que la photo) */
.hb-fils { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; will-change: transform; }
.hb-fils path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hb-fil-base { stroke: var(--gold-soft); stroke-opacity: .2; stroke-width: 1.2; transition: stroke-opacity 1.2s ease; }
.hb-fil-halo, .hb-fil-lum { stroke-dasharray: 80 1000; stroke-dashoffset: 80; }
.hb-fil-halo { stroke: var(--mode-glow); stroke-opacity: .32; stroke-width: 9; }
.hb-fil-lum { stroke: #fff6df; stroke-width: 2.2; }
.hb-fil.is-lit .hb-fil-base { stroke-opacity: .5; }
.hb-fil.is-go .hb-fil-halo, .hb-fil.is-go .hb-fil-lum { animation: hbFlow 2.1s cubic-bezier(.45, .05, .3, 1) forwards; }
@keyframes hbFlow { from { stroke-dashoffset: 80; } to { stroke-dashoffset: -1000; } }

.hb-sc-cap { position: absolute; left: 3.4%; bottom: 6%; margin: 0; display: grid; gap: .3rem; max-width: 22rem; }
.hb-sc-cap small { font: 600 .64rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); }
.hb-sc-cap b { font-size: clamp(1.15rem, 1.9vw, 1.6rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.hb-sc-cap span { color: #cfcfd5; font-size: .9rem; }

/* Les choses de la vie */
.hb-vies { list-style: none; margin: 0; padding: 0; position: absolute; inset: var(--pad); pointer-events: none; }
.hb-vie {
  position: absolute; left: var(--l); top: var(--t); width: 21.5%; pointer-events: auto;
  display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: 14px;
  background: linear-gradient(160deg, #161616eb, #070707f2); border: 1px solid #ffffff1c;
  box-shadow: 0 18px 40px #000000b3, var(--mode-spec);
}
.hb-vie::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 1s ease;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold-soft) 55%, transparent), 0 0 34px color-mix(in srgb, var(--mode-glow) 26%, transparent);
}
.hb-vie.is-lit::after { opacity: 1; }
.hb-vie-ic {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--gold-soft);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--mode-glow) 22%, #111), #080808);
  border: 1px solid color-mix(in srgb, var(--gold-soft) 32%, transparent); transition: box-shadow 1s ease, color 1s ease;
}
.hb-vie-ic .hb-i { width: 18px; height: 18px; }
.hb-vie-tx { min-width: 0; display: grid; gap: .18rem; }
.hb-vie-tx small { font: 600 .6rem/1.1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: #a9a397; }
.hb-vie-tx b { font-size: .86rem; font-weight: 600; line-height: 1.3; color: #f6f3ec; transition: opacity .35s ease, transform .35s ease; }
.hb-vie-tx b.is-out { opacity: 0; transform: translateY(4px); }
.hb-vie-ok { position: absolute; top: .55rem; right: .6rem; width: 6px; height: 6px; border-radius: 50%; background: var(--hb-ok); box-shadow: 0 0 8px #34d399aa; }
.hb-vie.is-lit .hb-vie-ic { color: #fff8e6; box-shadow: 0 0 18px color-mix(in srgb, var(--mode-glow) 55%, transparent); }

.hb-sc-bar { position: absolute; right: calc(var(--pad) + 2.6%); bottom: calc(var(--pad) + 4%); z-index: 4; display: flex; align-items: center; justify-content: flex-end; gap: .8rem; max-width: 44%; flex-wrap: wrap; }
.hb-net-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--mode-line); background: #000000b8; color: #e8e8ec; font: 500 .78rem/1 var(--sans);
  transition: border-color .3s, background .3s, color .3s;
}
.hb-net-btn:hover { border-color: color-mix(in srgb, var(--gold-soft) 50%, transparent); }
.hb-net-btn[aria-pressed="true"] { border-color: #f8717188; color: #fecaca; background: #2a0d0dcc; }
.hb-net-btn .hb-i { width: 16px; height: 16px; }
.hb-offline {
  display: flex; gap: .55rem; align-items: flex-start; margin: 0; padding: .6rem .85rem; border-radius: 12px; flex-basis: 100%; order: -1;
  background: #06281ce6; border: 1px solid #34d39955; color: #d1fae5; font-size: .82rem; line-height: 1.45;
}
.hb-offline[hidden] { display: none; }
.hb-offline .hb-i { width: 16px; height: 16px; margin-top: .1rem; }

.hb-coeur-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; }
.hb-coeur-facts span { display: inline-flex; align-items: center; gap: .5rem; font: 500 .7rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.hb-coeur-facts .hb-i { width: 15px; height: 15px; }

/* ---------- Un Hub par lieu, une seule application ---------- */
.hb-lieux-head { text-align: center; max-width: 44rem; margin: 2.6rem auto 0; }
.hb-lieux-head h3 { margin: .9rem 0 0; font-weight: 650; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; }
.hb-lieux-head > p:last-child { margin: 1rem auto 0; color: #c4c4cc; font-size: 1rem; line-height: 1.65; }
.hb-lieux { padding: 2rem 2.2rem 1.4rem; }
.hb-lx-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 15rem minmax(0, 1fr); gap: 0 5.5rem; align-items: center; }
.hb-lx-fils { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; will-change: transform; }
.hb-lx-fils path { fill: none; stroke-linecap: round; }
.hb-lx-fils .hb-fil-base { stroke-width: 1.3; stroke-opacity: .32; }
.hb-lx-fils .hb-fil-halo { stroke-width: 7; }
.hb-lx-fils .hb-fil-lum { stroke-width: 2; }
.hb-lx-col { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.hb-lx-t { position: relative; aspect-ratio: 2.45 / 1; border-radius: 14px; overflow: hidden; border: 1px solid #ffffff1a; background: #050505; box-shadow: 0 20px 44px #000000b3; }
.hb-lx-t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-lx-t::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000000d9 0%, #00000059 48%, #0000 70%); }
.hb-lx-tx { position: absolute; z-index: 1; left: .85rem; right: .85rem; bottom: .7rem; display: grid; gap: .15rem; }
.hb-lx-tx b { font-size: .95rem; font-weight: 620; letter-spacing: -.01em; line-height: 1.2; }
.hb-lx-tx small { font-size: .76rem; color: #d2d2d8; }
.hb-lx-hub {
  position: absolute; z-index: 1; top: .65rem; display: inline-flex; align-items: center; gap: .45rem; padding: .34rem .6rem .34rem .5rem;
  border-radius: 999px; background: #000000c2; border: 1px solid color-mix(in srgb, var(--gold-soft) 38%, transparent);
  font: 600 .58rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hb-lx-t.is-g .hb-lx-hub { right: .65rem; }
.hb-lx-t.is-d .hb-lx-hub { left: .65rem; }
.hb-lx-hub i { width: 7px; height: 7px; border-radius: 50%; background: #fff3d6; box-shadow: 0 0 8px 2px color-mix(in srgb, var(--mode-glow) 70%, transparent); }
.fx .hb-lieux.is-run .hb-lx-hub i { animation: hbLed 4.2s ease-in-out infinite; }
.hb-lx-t::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 1s ease;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-soft) 60%, transparent), inset 0 0 36px color-mix(in srgb, var(--mode-glow) 30%, transparent);
}
.hb-lx-t.is-lit::before { opacity: 1; }

/* Le téléphone : une seule application */
.hb-lx-tel {
  position: relative; z-index: 1; width: 15rem; aspect-ratio: 9 / 18.6; padding: .5rem; border-radius: 2.3rem; justify-self: center;
  background: linear-gradient(155deg, #2b2a28, #0a0a0a 45%, #171614);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold-soft) 42%, transparent), 0 40px 80px #000, 0 0 70px color-mix(in srgb, var(--mode-glow) 16%, transparent), inset 0 1px 0 #ffffff2e;
}
.hb-tel-ecran {
  height: 100%; border-radius: 1.85rem; overflow: hidden; display: flex; flex-direction: column; padding: 1.5rem .7rem .8rem;
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--mode-glow) 14%, #0b0b0b), #060606 70%);
  font-family: "Jarvis Manrope", var(--sans);
}
.hb-tel-top { margin: 0 .35rem .8rem; display: grid; gap: .2rem; }
.hb-tel-top b { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
.hb-tel-top small { font-size: .7rem; color: #a7f3d0; }
.hb-tel-rangs { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.hb-tel-rangs li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: .55rem; padding: .4rem .45rem; border-radius: 12px; background: #ffffff08; border: 1px solid #ffffff0d; transition: background 1s ease, border-color 1s ease; }
.hb-tel-rangs img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }
.hb-tel-rangs span { min-width: 0; display: grid; }
.hb-tel-rangs b { font-size: .74rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-tel-rangs small { font-size: .62rem; color: #aaa59b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-tel-rangs i { width: 6px; height: 6px; border-radius: 50%; background: var(--hb-ok); box-shadow: 0 0 6px #34d399aa; }
.hb-tel-rangs li.is-lit { background: color-mix(in srgb, var(--mode-glow) 16%, #0b0b0b); border-color: color-mix(in srgb, var(--gold-soft) 40%, transparent); }
.hb-tel-pied { margin: auto .3rem 0; display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .64rem; color: var(--gold-soft); }
.hb-tel-pied .hb-i { width: 13px; height: 13px; }
.hb-lx-note { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; color: #a9a9b2; font-size: .84rem; }

/* Quatre réponses courtes */
.hb-reps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.hb-reps li { padding: 1.2rem 1.25rem 1.3rem; border-radius: 16px; background: var(--hb-card); border: 1px solid var(--hb-line); box-shadow: var(--mode-spec); display: grid; align-content: start; gap: .45rem; }
.hb-reps small { font: 600 .66rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.hb-reps b { font-size: 1.5rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.hb-reps span { font-size: .88rem; line-height: 1.55; color: #b4b4bc; }

/* Les deux formats du Hub */
.hb-fms { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.hb-fm { margin: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 1.1rem; padding: .8rem; border-radius: 16px; background: var(--hb-card); border: 1px solid var(--hb-line); }
.hb-fm img, .hb-fm-wait { width: 100%; aspect-ratio: 4 / 3; border-radius: 11px; object-fit: cover; object-position: 34% 52%; }
.hb-fm-wait { display: grid; place-content: center; justify-items: center; gap: .35rem; background: radial-gradient(80% 70% at 50% 40%, #161616, #050505); border: 1px solid #ffffff12; color: var(--gold-soft); }
.hb-fm-wait .hb-i { width: 26px; height: 26px; opacity: .8; }
.hb-fm-wait b { font: 600 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.hb-fm-wait small { font: 500 .62rem/1 var(--mono); color: #8e8e96; }
.hb-fm figcaption { display: grid; gap: .35rem; }
.hb-fm figcaption b { font-size: 1.02rem; font-weight: 620; }
.hb-fm figcaption span { font-size: .86rem; line-height: 1.5; color: #b4b4bc; }

/* Pour les curieux */
.hb-curieux { border-radius: 16px; background: var(--hb-card); border: 1px solid var(--hb-line); }
.hb-curieux summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: .9rem; padding: 1rem 1.25rem; }
.hb-curieux summary::-webkit-details-marker { display: none; }
.hb-curieux summary span { font: 600 .64rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.hb-curieux summary b { font-size: .95rem; font-weight: 600; color: #e6e6ea; }
.hb-curieux summary i { margin-left: auto; width: 9px; height: 9px; border-right: 1.5px solid var(--gold-soft); border-bottom: 1.5px solid var(--gold-soft); transform: rotate(45deg); transition: transform .3s; align-self: center; }
.hb-curieux[open] summary i { transform: rotate(225deg); }
.hb-cu-b { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1.4rem 2rem; padding: .3rem 1.25rem 1.4rem; }
.hb-hosted { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.hb-hosted li { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 12px; background: #ffffff06; border: 1px solid var(--hb-line); }
.hb-hosted li .hb-i { width: 18px; height: 18px; color: var(--gold-soft); margin-top: .1rem; }
.hb-hosted b { display: block; font-size: .86rem; font-weight: 600; }
.hb-hosted span { display: block; margin-top: .15rem; font-size: .78rem; line-height: 1.45; color: #a9a9b2; }
.hb-cu-side { display: grid; align-content: start; gap: .8rem; font-size: .8rem; line-height: 1.5; color: #a9a9b2; }
.hb-cu-side p { margin: 0; }
.hb-cu-side p b { display: block; color: #e6e6ea; font-size: .84rem; font-weight: 600; margin-bottom: .15rem; }
.hb-legend { display: flex; flex-wrap: wrap; gap: .4rem; }

.hb-scene:not(.is-run) .hb-sc-halo, .hb-scene:not(.is-run) .hb-sc-led, .hb-scene:not(.is-run) .hb-fil * { animation-play-state: paused; }
.hb-lieux:not(.is-run) * { animation-play-state: paused; }

/* ==========================================================================
   2. L'IA au cœur
   ========================================================================== */
.hb-ia { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 2.4rem 3rem; align-items: start; }
.hb-traits { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.hb-traits li { position: relative; display: flex; gap: 1rem; padding: .95rem .2rem .95rem 0; border-bottom: 1px solid #ffffff10; transition: opacity .5s; }
.hb-traits li:last-child { border-bottom: 0; }
.hb-traits i {
  flex: none; width: 12px; height: 12px; margin-top: .35rem; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--gold-soft) 60%, transparent); transition: background .4s, box-shadow .4s, border-color .4s;
}
.hb-traits b { display: block; font-size: 1.02rem; font-weight: 620; letter-spacing: -.01em; }
.hb-traits span { display: block; margin-top: .25rem; font-size: .88rem; line-height: 1.5; color: #a9a9b2; }
.hb-ia.is-live .hb-traits li { opacity: .5; }
.hb-ia.is-live .hb-traits li.is-done { opacity: .82; }
.hb-ia.is-live .hb-traits li.is-done i { background: color-mix(in srgb, var(--gold-soft) 55%, transparent); border-color: transparent; }
.hb-ia.is-live .hb-traits li.is-on { opacity: 1; }
.hb-ia.is-live .hb-traits li.is-on i { background: var(--gold-soft); border-color: var(--gold-soft); box-shadow: 0 0 0 5px color-mix(in srgb, var(--mode-glow) 22%, transparent), 0 0 16px var(--mode-glow); }

.hb-console { display: flex; flex-direction: column; font-family: "Jarvis Manrope", var(--sans); overflow: hidden; }
.hb-con-top { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem 1rem; border-bottom: 1px solid var(--hb-line); }
.hb-con-id { display: flex; align-items: center; gap: .75rem; }
.hb-con-id > .hb-i { width: 38px; height: 38px; padding: 8px; border-radius: 12px; color: var(--mode-on-action); background: var(--mode-action); box-shadow: 0 0 24px color-mix(in srgb, var(--mode-glow) 45%, transparent); }
.hb-con-id b { display: block; font-size: 1rem; font-weight: 700; }
.hb-con-id small { display: block; margin-top: .15rem; font: 500 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #a9a9b2; }
.hb-con-zero { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .75rem; border-radius: 999px; background: #06281c; border: 1px solid #34d39944; font-size: .75rem; color: #a7f3d0; transition: box-shadow .5s; }
.hb-con-zero i { width: 7px; height: 7px; border-radius: 50%; background: var(--hb-ok); }
.hb-con-zero b { font-weight: 700; color: #ecfdf5; }
.hb-con-zero.is-hot { box-shadow: 0 0 0 4px #34d39922, 0 0 22px #34d39955; }
.hb-con-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--hb-line); }
.hb-con-tabs[hidden] { display: none; }
[data-demo="hub"] [role="tablist"] button {
  position: relative; display: grid; gap: .25rem; padding: .85rem 1.1rem .9rem; text-align: left; cursor: pointer; border: 0;
  border-right: 1px solid var(--hb-line); background: transparent; color: #b9b9c2; font: inherit; transition: background .3s, color .3s;
}
[data-demo="hub"] [role="tablist"] button:last-child { border-right: 0; }
[data-demo="hub"] [role="tablist"] button:hover { background: #ffffff07; color: #fff; }
[data-demo="hub"] [role="tablist"] button[aria-selected="true"] { background: #ffffff0c; color: #fff; }
[data-demo="hub"] [role="tablist"] button::after {
  content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--mode-action); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
[data-demo="hub"] [role="tablist"] button[aria-selected="true"]::after { transform: scaleX(1); }
[data-demo="hub"] [role="tablist"] b { font-size: .93rem; font-weight: 650; }
[data-demo="hub"] [role="tablist"] small { font: 500 .6rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9a9aa3; }

.hb-con-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .9rem; padding: 1.3rem 1.4rem; height: 560px; overflow-y: auto; scrollbar-width: none; }
.hb-con-body::-webkit-scrollbar { display: none; }
.hb-con-body > :first-child { margin-top: auto; }
.hb-ia.is-live .hb-con-body > :not(.is-in) { display: none; }
.hb-ia.is-live .hb-con-body > .is-in { animation: hbIn .55s var(--ease); }
.hb-msg-me { align-self: flex-end; max-width: 82%; }
.hb-ask { margin: 0; padding: .85rem 1.1rem; border-radius: 18px 18px 6px 18px; background: var(--mode-action); color: var(--mode-on-action); font-weight: 600; font-size: .98rem; line-height: 1.45; box-shadow: var(--mode-action-edge); min-height: 1.45em; }
.hb-ask.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: hbBlink .8s steps(1) infinite; }
.hb-step { align-self: flex-start; width: min(100%, 36rem); padding: .9rem 1rem; border-radius: 6px 18px 18px 18px; background: #121212; border: 1px solid var(--hb-line); }
.hb-step > small { display: flex; align-items: center; gap: .45rem; margin-bottom: .65rem; font: 600 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.hb-step > small .hb-i { width: 14px; height: 14px; }
.hb-intent { display: flex; flex-wrap: wrap; gap: .4rem; }
.hb-intent span { padding: .32rem .7rem; border-radius: 999px; background: #1d1d1f; border: 1px solid #ffffff1c; font-size: .82rem; color: #f0f0f2; }
.hb-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.hb-checks li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: .55rem; padding: .5rem .6rem; border-radius: 11px; background: #0a0a0a; font-size: .85rem; }
.hb-checks li > .hb-i { width: 16px; height: 16px; color: var(--x); }
.hb-checks b { font-weight: 650; color: var(--x); font-size: .8rem; }
.hb-checks span { color: #d4d4da; line-height: 1.4; }
.hb-checks i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #34d3991f; color: var(--hb-ok); }
.hb-checks i .hb-i { width: 13px; height: 13px; }
.hb-ia.is-live .hb-checks li { opacity: 0; transform: translateX(-6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.hb-ia.is-live .hb-checks li.is-in { opacity: 1; transform: none; }
.hb-plan ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.hb-plan ol li { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; line-height: 1.45; color: #ececf0; }
.hb-plan ol li i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font: 700 .7rem/1 var(--mono); font-style: normal; color: var(--gold-soft); background: color-mix(in srgb, var(--mode-glow) 16%, #0a0a0a); }
.hb-plan-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .95rem; }
.hb-plan-acts button { padding: .55rem 1rem; border-radius: 999px; border: 1px solid #ffffff26; background: #ffffff08; color: #f0f0f2; font: 600 .84rem/1 inherit; font-family: inherit; cursor: default; transition: transform .25s var(--ease), box-shadow .3s; }
.hb-plan-acts .hb-ok { border: 0; background: var(--mode-action); color: var(--mode-on-action); box-shadow: var(--mode-action-edge); }
.hb-plan-acts .hb-ok.is-press { transform: scale(.94); box-shadow: var(--mode-action-edge), 0 0 0 6px color-mix(in srgb, var(--mode-glow) 28%, transparent); }
.hb-plan-acts .hb-ok.is-done::before { content: "✓ "; }
.hb-why-b.is-press { border-color: color-mix(in srgb, var(--gold-soft) 60%, transparent) !important; color: var(--gold-soft) !important; }
.hb-think { align-self: flex-start; display: inline-flex; gap: 5px; padding: .8rem 1rem; border-radius: 6px 18px 18px 18px; background: #121212; border: 1px solid var(--hb-line); }
.hb-think i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); animation: hbDot 1s ease-in-out infinite; }
.hb-think i:nth-child(2) { animation-delay: .15s; } .hb-think i:nth-child(3) { animation-delay: .3s; }
@keyframes hbDot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.hb-why p { margin: 0; font-size: .92rem; line-height: 1.6; color: #d8d8de; }
.hb-done { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; background: none; border: 0; }
.hb-learn, .hb-log { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; font-size: .8rem; }
.hb-learn { background: color-mix(in srgb, var(--mode-glow) 14%, #0a0a0a); border: 1px solid color-mix(in srgb, var(--mode-glow) 40%, transparent); color: var(--gold-soft); }
.hb-log { background: #0a0a0a; border: 1px solid var(--hb-line); color: #c4c4cc; }
.hb-learn .hb-i, .hb-log .hb-i { width: 14px; height: 14px; }
.hb-con-input { position: relative; z-index: 4; display: flex; align-items: center; gap: .7rem; margin: 0 1rem 1rem; padding: .7rem .8rem; border-radius: 16px; background: #050505; border: 1px solid var(--hb-line); }
.hb-con-mic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ffffff0c; color: var(--gold-soft); }
.hb-con-mic .hb-i { width: 16px; height: 16px; }
.hb-con-ph { flex: 1; color: #77777f; font-size: .9rem; }
.hb-con-tag { font: 500 .58rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8e8e96; }

.hb-two { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; margin-top: 1rem; }
.hb-two-c { padding: 1.5rem 1.6rem; border-radius: 18px; background: var(--hb-card); border: 1px solid var(--hb-line); }
.hb-two-c.is-core { border-color: color-mix(in srgb, var(--gold-soft) 38%, transparent); box-shadow: 0 0 60px -20px color-mix(in srgb, var(--mode-glow) 50%, transparent), var(--mode-spec); }
.hb-two-c.is-ext { border-color: color-mix(in srgb, var(--x) 32%, transparent); }
.hb-two-c small { font: 600 .62rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.hb-two-c.is-ext small { color: var(--x); }
.hb-two-c h3 { display: flex; align-items: center; gap: .6rem; margin: .8rem 0 .55rem; font-size: 1.2rem; font-weight: 650; letter-spacing: -.02em; }
.hb-two-c h3 .hb-i { width: 22px; height: 22px; color: var(--gold-soft); }
.hb-two-c.is-ext h3 .hb-i { color: var(--x); }
.hb-two-c p { margin: 0; color: #c0c0c8; font-size: .93rem; line-height: 1.6; }
.hb-two-vs { align-self: center; font: 600 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #8e8e96; }

/* ==========================================================================
   3. Comment les extensions travaillent ensemble
   ========================================================================== */
.hb-roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.hb-roles li.is-hub { border-color: color-mix(in srgb, var(--gold-soft) 40%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--mode-glow) 14%, #111), #070707); box-shadow: 0 0 50px -24px var(--mode-glow); }
.hb-roles li.is-hub .hb-ro-ic { color: var(--mode-on-action); background: var(--mode-action); border: 0; }
.hb-roles li {
  position: relative; display: flex; gap: .9rem; padding: 1.15rem 1.15rem 1.1rem; border-radius: 16px; overflow: hidden;
  background: var(--hb-card); border: 1px solid var(--hb-line); transition: border-color .4s, transform .4s var(--ease);
}
.hb-roles li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--x), transparent); }
.hb-roles li:hover { border-color: color-mix(in srgb, var(--x) 40%, transparent); transform: translateY(-2px); }
.hb-ro-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--x); background: color-mix(in srgb, var(--x) 12%, #0a0a0a); border: 1px solid color-mix(in srgb, var(--x) 30%, transparent); }
.hb-roles b { display: block; font-size: .78rem; font: 600 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--x); }
.hb-roles p { margin: .45rem 0 .6rem; font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: #fff; }
.hb-roles small { display: block; font-size: .78rem; line-height: 1.45; color: #9d9da6; }
.hb-roles small em { font-style: normal; color: #d6d6dc; margin-right: .3rem; }

.hb-rule { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2.4rem 0 0; padding: 1.4rem; border-radius: 18px; background: #000000a0; border: 1px solid var(--mode-line); }
.hb-rule-s { position: relative; display: grid; gap: .35rem; align-content: start; padding: 0 .4rem; }
.hb-rule-s i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 .78rem/1 var(--mono); font-style: normal; color: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold-soft) 45%, transparent); margin-bottom: .35rem; }
.hb-rule-s:not(:last-child)::after { content: ""; position: absolute; left: 44px; right: -10px; top: 15px; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--gold-soft) 45%, transparent), transparent); }
.hb-rule-s b { font-size: .98rem; font-weight: 640; letter-spacing: -.01em; line-height: 1.35; }
.hb-rule-s span { font-size: .84rem; line-height: 1.5; color: #a9a9b2; }
.hb-rule-s.is-hub i { background: var(--mode-action); color: var(--mode-on-action); border: 0; box-shadow: 0 0 20px color-mix(in srgb, var(--mode-glow) 50%, transparent); }
.hb-rule-s.is-hub i .hb-i { width: 16px; height: 16px; }
.hb-rule-s.is-hub b { color: var(--gold-soft); }

.hb-chain { margin-top: 2.2rem; padding: 0 0 1.4rem; overflow: hidden; }
.hb-ch-top { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: stretch; border-bottom: 1px solid var(--hb-line); }
.hb-ch-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; }
.hb-ch-ctl { display: flex; align-items: center; gap: .4rem; padding: 0 1.1rem; border-left: 1px solid var(--hb-line); }
.hb-ch-ctl[hidden] { display: none; }
.hb-ch-ctl button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ffffff22; background: #ffffff08; color: #f0f0f2; cursor: pointer; transition: border-color .3s, background .3s; }
.hb-ch-ctl button:hover { border-color: color-mix(in srgb, var(--gold-soft) 55%, transparent); }
.hb-ch-ctl .hb-i { width: 16px; height: 16px; }
.hb-ch-play .hb-i + .hb-i, .hb-ch-play.is-paused .hb-i:first-child { display: none; }
.hb-ch-play.is-paused .hb-i + .hb-i { display: block; }
.hb-ch-lieu { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; padding: 1.1rem 1.6rem .2rem; }
.hb-ch-lieu span { font: 600 .58rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8e8e96; padding: .35rem .55rem; border: 1px solid #ffffff1c; border-radius: 6px; }
.hb-ch-lieu b { font-size: 1.02rem; font-weight: 620; }

.hb-ch-bus { position: relative; z-index: 2; margin: 2.3rem 1.6rem 0; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #0d0c0a, color-mix(in srgb, var(--mode-glow) 10%, #0b0a08), #0d0c0a); border: 1px solid color-mix(in srgb, var(--gold-soft) 26%, transparent); }
.hb-ch-bus span { position: absolute; left: .2rem; bottom: calc(100% + .5rem); display: inline-flex; align-items: center; gap: .45rem; font: 600 .6rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); white-space: nowrap; }
.hb-ch-bus span .hb-i { width: 14px; height: 14px; }
.hb-ch-pulse { position: absolute; top: 50%; left: var(--p, 10%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--pc, var(--gold-soft)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc, var(--gold-soft)) 25%, transparent), 0 0 18px var(--pc, var(--gold-soft)); opacity: 0; transition: left 1.1s var(--ease), opacity .3s; }
.hb-chain.is-live .hb-ch-pulse { opacity: 1; }

.hb-ch-rail { position: relative; z-index: 2; list-style: none; margin: 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: .6rem; }
.hb-ch-rail li { position: relative; padding-top: 26px; }
.hb-ch-rail li::before { content: ""; position: absolute; top: 0; left: 22px; width: 1px; height: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--gold-soft) 35%, transparent), color-mix(in srgb, var(--x) 60%, transparent)); }
.hb-ch-rail button { width: 100%; height: 100%; display: flex; gap: .6rem; align-items: flex-start; padding: .65rem .7rem; text-align: left; border-radius: 14px; border: 1px solid var(--hb-line); background: #0a0a0a; color: inherit; font: inherit; cursor: pointer; transition: border-color .4s, background .4s, opacity .4s; }
.hb-chain.is-live .hb-ch-rail button { cursor: pointer; }
.hb-r-dot { position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--x); background: color-mix(in srgb, var(--x) 12%, #0a0a0a); border: 1px solid color-mix(in srgb, var(--x) 45%, transparent); transition: box-shadow .4s; }
.hb-r-dot .hb-i { width: 15px; height: 15px; }
.hb-r-tx { min-width: 0; display: grid; gap: .25rem; }
.hb-r-tx small { font: 600 .56rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--x); }
.hb-r-tx b { font-size: .8rem; font-weight: 600; line-height: 1.32; color: #e6e6ea; }
.hb-r-tx em { font: 500 .62rem/1 var(--mono); font-style: normal; letter-spacing: .06em; color: #8e8e96; }
.hb-chain.is-live .hb-ch-rail li { opacity: .55; transition: opacity .4s; }
.hb-chain.is-live .hb-ch-rail li.is-done { opacity: .85; }
.hb-chain.is-live .hb-ch-rail li.is-on { opacity: 1; }
.hb-ch-rail li.is-on button { border-color: color-mix(in srgb, var(--x) 55%, transparent); background: color-mix(in srgb, var(--x) 7%, #0a0a0a); }
.hb-ch-rail li.is-on .hb-r-dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--x) 18%, transparent), 0 0 18px color-mix(in srgb, var(--x) 70%, transparent); }
.hb-ch-rail li.is-done .hb-r-dot::after { content: "✓"; position: absolute; right: -5px; top: -5px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; font-size: .55rem; font-weight: 800; color: #052e1f; background: var(--hb-ok); }

.hb-ch-main { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 1rem; margin: 1rem 1.6rem 0; }
.hb-ch-detail { min-height: 360px; padding: 1.4rem 1.5rem; border-radius: 16px; background: #090909; border: 1px solid var(--hb-line); }
.hb-d.is-in { animation: hbIn .55s var(--ease); }
.hb-d-k { margin: 0; font: 600 .62rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--x); }
.hb-d h4 { margin: .55rem 0 .5rem; font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.hb-d-p { margin: 0; max-width: 46rem; color: #c8c8d0; font-size: .95rem; line-height: 1.62; }
.hb-d-m { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.2rem; margin: 1.1rem 0 0; padding: .8rem 1rem; border-radius: 12px; background: #000; border: 1px solid #ffffff12; }
.hb-d-m span { display: grid; gap: .1rem; }
.hb-d-m small { font: 500 .58rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8e8e96; }
.hb-d-m b { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hb-d-m em { font-style: normal; font-size: .76rem; color: #9d9da6; }
.hb-d-m i { position: relative; display: block; height: 8px; border-radius: 99px; background: #ffffff10; overflow: hidden; }
.hb-d-m u { position: absolute; inset: 0 auto 0 0; width: calc(var(--f) * 100%); border-radius: 99px; text-decoration: none; }
.fx .hb-d.is-in .hb-d-m u { animation: hbBar 1.1s var(--ease); }
@keyframes hbBar { from { width: 0; } }
.hb-d-m.is-ok b { color: #6ee7b7; } .hb-d-m.is-ok u { background: linear-gradient(90deg, #059669, var(--hb-ok)); }
.hb-d-m.is-warn b { color: #fcd34d; } .hb-d-m.is-warn u { background: linear-gradient(90deg, #b45309, var(--hb-warn)); }
.hb-d-m.is-bad b { color: #fca5a5; } .hb-d-m.is-bad u { background: linear-gradient(90deg, #b91c1c, var(--hb-bad)); }
.hb-d-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0 0; }
.hb-d-flow div { padding: .7rem .8rem; border-radius: 12px; background: #0f0f10; border: 1px solid #ffffff10; }
.hb-d-flow dt { display: flex; align-items: center; gap: .4rem; font: 600 .56rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.hb-d-flow dt .hb-i { width: 13px; height: 13px; }
.hb-d-flow dd { margin: .45rem 0 0; font-size: .84rem; line-height: 1.45; color: #e2e2e6; }
.hb-d-subs { display: flex; flex-wrap: wrap; gap: .3rem; }
.hb-d-subs .hb-x { font-size: .74rem; padding: .25rem .55rem .25rem .4rem; }

.hb-ch-log { padding: 1.1rem 1rem; border-radius: 16px; background: #050505; border: 1px solid var(--hb-line); overflow: hidden; }
.hb-ch-log > p { display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; font: 600 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.hb-ch-log > p .hb-i { width: 14px; height: 14px; }
.hb-ch-log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hb-ch-log li { display: grid; grid-template-columns: auto 1fr; gap: .15rem .6rem; padding: .55rem .6rem; border-radius: 10px; background: #0d0d0e; border-left: 2px solid var(--x); font-size: .76rem; line-height: 1.4; animation: hbIn .5s var(--ease); }
.hb-ch-log time { font: 600 .66rem/1.4 var(--mono); color: #a9a9b2; }
.hb-ch-log li b { font-weight: 600; color: #ececf0; }
.hb-ch-log li span { grid-column: 2; font: 500 .58rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #6ee7b7; }
.hb-ch-log .is-empty { color: #77777f; font-size: .8rem; border: 0; background: none; padding: 0; animation: none; display: block; }

.hb-answer { margin: 3rem auto 0; max-width: 56rem; text-align: center; }
.hb-answer h3 { margin: .9rem 0 0; font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.22; }
.hb-answer h3 span { color: var(--x); }
.hb-answer h3 em { font-style: normal; background: var(--mode-display); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-answer > p:last-child { margin: 1.1rem auto 0; max-width: 42rem; color: #b9b9c2; line-height: 1.65; }

/* ---------- Réactif ---------- */
@media (max-width: 1100px) {
  .hb-ia { grid-template-columns: 1fr; }
  /* La scène du Hub : la photo, puis les cartes en grille (les fils restent sur la photo plus large) */
  .hb-fils { display: none; }
  .hb-vies { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: .8rem; }
  .hb-vie { position: relative; left: auto; top: auto; width: auto; }
  .hb-vie::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: -1px; height: 1px; opacity: 0; transition: opacity 1s ease;
    background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
  .hb-vie.is-lit::before { opacity: 1; }
  .hb-sc-bar { position: static; max-width: none; justify-content: space-between; margin: .8rem .2rem 0; }
  .hb-lx-body { gap: 0 3rem; }
  .hb-lx-t { aspect-ratio: 16 / 9; }
  .hb-lx-tel { width: 13.5rem; }
  .hb-reps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-fms { grid-template-columns: 1fr; }
  .hb-console { order: -1; }
  .hb-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-traits { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .hb-ch-rail .hb-r-tx b { font-size: .76rem; }
}
@media (max-width: 900px) {
  .hb-lx-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "g d" "tel tel"; gap: .8rem; }
  .hb-lx-col.is-g { grid-area: g; } .hb-lx-col.is-d { grid-area: d; } .hb-lx-tel { grid-area: tel; margin-top: 1.4rem; }
  .hb-lx-fils { display: none; }
  .hb-lx-t.is-g .hb-lx-hub { right: auto; left: .65rem; }
  .hb-vies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-cu-b { grid-template-columns: 1fr; }
  .hb-rule { grid-template-columns: 1fr 1fr; row-gap: 1.4rem; }
  .hb-rule-s:nth-child(2)::after { display: none; }
  .hb-ch-main { grid-template-columns: 1fr; }
  .hb-ch-log ol li:nth-child(n+4) { display: none; }
  .hb-d-flow { grid-template-columns: 1fr; }
  .hb-two { grid-template-columns: 1fr; }
  .hb-two-vs { justify-self: center; }
  .hb-ch-rail .hb-r-tx { display: none; }
  .hb-ch-rail button { justify-content: center; padding: .55rem; }
  .hb-ch-rail li::before { left: 50%; }
}
@media (max-width: 640px) {
  .hb-scene { --pad: 9px; }
  .hb-sc-photo { aspect-ratio: 4 / 3; }
  .hb-sc-photo img { object-position: 40% 50%; }
  /* image 16:9 rognée en 4:3 à 40 % : x' = (x - 10 %) / 0,75 */
  .hb-sc-halo { left: calc((var(--halo-x) - 10%) / .75); width: 110%; }
  .hb-sc-led { left: calc((var(--led-x) - 10%) / .75); }
  .hb-sc-veil { background: linear-gradient(0deg, #000000d0 0%, #0000 45%); }
  .hb-sc-cap { left: 4.5%; bottom: 5%; }
  .hb-sc-cap span { font-size: .8rem; }
  .hb-vies { grid-template-columns: 1fr; gap: .5rem; }
  .hb-vie { padding: .55rem .7rem; }
  .hb-vie-ic { width: 32px; height: 32px; }
  .hb-lieux { padding: 1.1rem .9rem 1rem; }
  .hb-lx-body { gap: .55rem; }
  .hb-lx-t { aspect-ratio: 1 / 1.05; }
  .hb-lx-tx { left: .55rem; right: .5rem; bottom: .5rem; }
  .hb-lx-tx b { font-size: .82rem; }
  .hb-lx-tx small { font-size: .68rem; }
  .hb-lx-hub { top: .45rem; padding: .28rem .45rem .28rem .4rem; font-size: .5rem; letter-spacing: .08em; }
  .hb-lx-t.is-g .hb-lx-hub, .hb-lx-t.is-d .hb-lx-hub { left: .45rem; }
  .hb-lx-tel { width: min(15rem, 82%); }
  .hb-reps { grid-template-columns: 1fr; }
  .hb-fm { grid-template-columns: 1fr; }
  .hb-hosted { grid-template-columns: 1fr; }
  .hb-roles { grid-template-columns: 1fr; }
  .hb-traits { grid-template-columns: 1fr; }
  .hb-con-top { flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1rem 1.1rem; }
  .hb-con-body { height: 620px; padding: 1rem; }
  .hb-msg-me { max-width: 92%; }
  .hb-checks li { grid-template-columns: auto 1fr auto; }
  .hb-checks li b { display: none; }
  [data-demo="hub"] [role="tablist"] button { padding: .75rem .7rem; }
  [data-demo="hub"] [role="tablist"] small { display: none; }
  .hb-ch-top { flex-direction: column; }
  .hb-ch-ctl { justify-content: center; padding: .6rem; border-left: 0; border-top: 1px solid var(--hb-line); }
  .hb-ch-lieu { padding: 1rem 1rem .2rem; }
  .hb-ch-bus, .hb-ch-rail, .hb-ch-main { margin-left: 1rem; margin-right: 1rem; }
  .hb-ch-rail { gap: .35rem; }
  .hb-r-dot { width: 26px; height: 26px; }
  .hb-ch-detail { padding: 1.1rem; min-height: 0; }
  .hb-rule { grid-template-columns: 1fr; padding: 1.1rem; }
  .hb-rule-s::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-demo="hub"] *, [data-demo="hub"] *::before, [data-demo="hub"] *::after { animation: none !important; transition: none !important; }
}
