/* Baze (24/10/2026, v2) : son propre univers. Pas la charte de Monteur Nomade (aplats, un seul bleu) : ici, de la nuit, de la profondeur,
   de la lumière. Un fond vivant en WebGL (baze-scene.js), des orbes qui flottent, des panneaux de verre dépoli.
   Toujours sombre. Les teintes viennent des orbes (--h, de 0 à 360) : chaque section a la sienne et la prête à son panneau. */

@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/geist-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --night: #04050d; --ink: #eef0ff; --dim: rgba(224, 230, 255, .68); --faint: rgba(214, 222, 255, .44);
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --cyan: #62e4ff; --violet: #8f7bff; --amber: #ffb454; --rose: #ff6fb5; --mint: #5df0b8; --bad: #ff7d8d;
  --font: "Mona Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --h: 214; --h2: 262;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; height: 100%; background: var(--night); }
body {
  margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none;
  background: var(--night); color: var(--ink);
  font: 450 15px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.bz-ic { flex: none; display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(98, 228, 255, .3); color: #fff; }
input, textarea { caret-color: var(--cyan); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Les couches du fond : le canvas WebGL, son repli en CSS, les fils entre les orbes */

.bz-gl, .bz-lines, .bz-fallback { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.bz-gl { z-index: 1; background: var(--night); }
.bz-lines { z-index: 2; pointer-events: none; }
.bz-fallback {
  z-index: 0; pointer-events: none; display: block;
  background:
    radial-gradient(1.3px 1.3px at 12% 18%, #fff, transparent 100%) 0 0 / 560px 560px,
    radial-gradient(1px 1px at 33% 72%, rgba(190, 215, 255, .9), transparent 100%) 0 0 / 560px 560px,
    radial-gradient(1.5px 1.5px at 71% 31%, #fff, transparent 100%) 0 0 / 560px 560px,
    radial-gradient(1px 1px at 88% 83%, rgba(255, 200, 235, .9), transparent 100%) 0 0 / 560px 560px,
    radial-gradient(1px 1px at 52% 9%, rgba(210, 225, 255, .9), transparent 100%) 0 0 / 560px 560px,
    radial-gradient(1.2px 1.2px at 22% 48%, rgba(255, 255, 255, .8), transparent 100%) 0 0 / 380px 380px,
    radial-gradient(1px 1px at 64% 66%, rgba(180, 200, 255, .9), transparent 100%) 0 0 / 380px 380px,
    radial-gradient(1px 1px at 91% 14%, #fff, transparent 100%) 0 0 / 380px 380px,
    radial-gradient(55% 48% at 50% 36%, rgba(86, 74, 255, .30), transparent 72%),
    radial-gradient(40% 40% at 16% 82%, rgba(255, 70, 170, .16), transparent 70%),
    radial-gradient(46% 42% at 88% 14%, rgba(40, 200, 255, .14), transparent 70%),
    radial-gradient(120% 90% at 50% 120%, rgba(60, 20, 120, .25), transparent 60%),
    var(--night);
}
body.has-gl .bz-fallback { display: none; }
body.is-fallback .bz-gl { display: none; }
@media (prefers-reduced-motion: no-preference) {
  body.is-fallback .bz-fallback { animation: fb-drift 90s linear infinite; }
}
@keyframes fb-drift { to { background-position: 560px 280px, 560px 280px, 560px 280px, 560px 280px, 560px 280px, 380px 190px, 380px 190px, 380px 190px, 0 0, 0 0, 0 0, 0 0, 0 0; } }

/* --- L'écran d'accueil */

.bz-main { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.bz-main > * { pointer-events: auto; }
.bz-stage { position: absolute; inset: 0; pointer-events: none; }
.bz-stage > * { pointer-events: auto; }
.bz-notice-top { position: fixed; top: 70px; left: 16px; right: 16px; z-index: 9; }

.bz-hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) clamp(16px, 3vw, 32px) 0; pointer-events: none;
}
.bz-hud form { display: contents; }
.bz-date { font: 500 11.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: rgba(208, 216, 255, .58); }
.bz-hud-btn {
  pointer-events: auto; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(14, 18, 44, .4); color: rgba(224, 230, 255, .66);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: color .2s, background .2s, border-color .2s;
}
.bz-hud-btn:hover { color: #fff; background: rgba(40, 50, 110, .5); border-color: rgba(255, 255, 255, .22); }

/* Baze au centre : un bouton invisible sur la scène (le canvas dessine), un vrai bouton pour le clavier et l'écran de lecture */
.bz-core {
  position: absolute; z-index: 2; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: none; padding: 0;
  cursor: pointer; pointer-events: auto;
}
.bz-core:focus-visible { outline: 1.5px dashed rgba(98, 228, 255, .8); outline-offset: 6px; border-radius: 50%; }
.bz-lede {
  position: absolute; left: 50%; top: calc(var(--core-y, 45vh) + var(--core-r, 120px) * 1.55); transform: translateX(-50%); z-index: 2;
  width: max-content; max-width: calc(100vw - 40px); text-align: center; pointer-events: none;
  font: 400 17px/1.3 var(--font); letter-spacing: .005em; color: rgba(226, 232, 255, .8); text-shadow: 0 2px 24px rgba(2, 3, 14, .95);
  transition: color .5s;
}
.bz-lede.is-alert { color: #ffd6a3; }
.bz-lede.is-joy { color: #9bf5cd; }

/* Le repli sans WebGL : un astre en CSS, sur le fond de l'écran */
body.is-fallback .bz-core {
  background:
    radial-gradient(closest-side, #fff 0, #c8d9ff 7%, rgba(98, 130, 255, .85) 24%, rgba(120, 70, 255, .45) 50%, rgba(80, 40, 200, .14) 76%, transparent 100%);
}
@media (prefers-reduced-motion: no-preference) {
  body.is-fallback .bz-core { animation: fb-breath 5s ease-in-out infinite; }
}
@keyframes fb-breath { 50% { transform: translate(-50%, -50%) scale(1.07); } }

/* --- Les orbes */

.bz-orbs { position: absolute; inset: 0; pointer-events: none; }
.bz-orb {
  position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform;
  width: calc(var(--s, 80px) + 64px); margin-left: calc((var(--s, 80px) + 64px) / -2); margin-top: calc(var(--s, 80px) / -2);
}
.bz-orb-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 11px; width: 100%; padding: 0 0 6px; border: 0; background: none;
  pointer-events: auto; color: inherit; touch-action: manipulation;
  opacity: 0; animation: orb-in 1.2s cubic-bezier(.2, .8, .2, 1) calc(.4s + var(--i, 0) * .09s) both;
}
@keyframes orb-in { from { opacity: 0; transform: scale(.35) translateY(24px); } to { opacity: 1; transform: none; } }
.bz-orb-body {
  position: relative; display: grid; place-items: center; width: var(--s, 80px); height: var(--s, 80px); border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 50% 56%, hsl(var(--h) 90% 13% / .97) 0, hsl(var(--h) 88% 26% / .95) 38%, hsl(var(--h) 92% 44%) 72%, hsl(var(--h) 100% 64%) 93%, hsl(var(--h) 100% 78%) 100%);
  box-shadow:
    0 0 0 1px hsl(var(--h) 100% 82% / .30),
    0 0 calc(var(--s, 80px) * .34) hsl(var(--h) 100% 60% / .55),
    0 0 calc(var(--s, 80px) * 1.05) hsl(var(--h) 100% 52% / .26),
    inset 0 calc(var(--s, 80px) * -.14) calc(var(--s, 80px) * .3) hsl(var(--h) 100% 64% / .5);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s;
}
.bz-orb-body::after { /* le reflet */
  content: ''; position: absolute; left: 15%; top: 8%; width: 48%; height: 30%; border-radius: 50%; transform: rotate(-24deg);
  background: radial-gradient(ellipse at 40% 38%, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 72%); pointer-events: none;
}
.bz-orb-halo { position: absolute; inset: -62%; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, hsl(var(--h) 100% 60% / .32), hsl(var(--h) 100% 55% / .09) 46%, transparent 66%); }
.bz-orb-body .bz-ic { position: relative; z-index: 1; width: 42%; height: 42%; filter: drop-shadow(0 0 7px hsl(var(--h) 100% 72% / .85)); }
.bz-orb-btn:hover .bz-orb-body, .bz-orb-btn:focus-visible .bz-orb-body { transform: scale(1.1); box-shadow: 0 0 0 1px hsl(var(--h) 100% 85% / .5), 0 0 calc(var(--s, 80px) * .5) hsl(var(--h) 100% 62% / .75), 0 0 calc(var(--s, 80px) * 1.4) hsl(var(--h) 100% 55% / .38), inset 0 calc(var(--s, 80px) * -.14) calc(var(--s, 80px) * .3) hsl(var(--h) 100% 66% / .55); }
.bz-orb-btn:active .bz-orb-body { transform: scale(.95); }
.bz-orb-btn:focus-visible { outline: none; }
.bz-orb-btn:focus-visible .bz-orb-label { color: #fff; text-decoration: underline; text-decoration-color: hsl(var(--h) 100% 75%); text-underline-offset: 5px; }
.bz-orb-label { font: 560 13.5px/1.1 var(--font); letter-spacing: .012em; color: rgba(236, 240, 255, .93); text-shadow: 0 1px 16px rgba(2, 3, 14, .95), 0 0 3px rgba(2, 3, 14, .8); white-space: nowrap; transition: color .2s; }
.bz-orb-btn:hover .bz-orb-label { color: #fff; }
.bz-orb-soon { margin-top: -7px; font: 500 9.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(214, 222, 255, .42); }
.bz-orb-count {
  position: absolute; left: calc(50% + var(--s, 80px) * .29); top: calc(var(--s, 80px) * -.05); display: none; place-items: center; min-width: 25px; height: 25px; padding: 0 7px; border-radius: 13px;
  background: rgba(5, 7, 22, .78); border: 1px solid hsl(var(--h) 100% 76% / .6); color: #fff; font: 600 12.5px/1 var(--mono); box-shadow: 0 0 18px hsl(var(--h) 100% 60% / .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.bz-orb.has-count .bz-orb-count { display: grid; }
.bz-orb.is-alert .bz-orb-body::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid hsl(var(--h) 100% 74% / .75); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .bz-orb.is-alert .bz-orb-body::before { animation: ripple 2.8s ease-out infinite; }
}
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
/* la nuit : tout s'éteint un peu */
body[data-mood="endormi"] .bz-orb:not(.is-soon) .bz-orb-body { filter: brightness(.62) saturate(.75); }

/* « bientôt » : des orbes éteints, à peine là */
.bz-orb.is-soon .bz-orb-body { filter: saturate(.3) brightness(.62); opacity: .5; box-shadow: 0 0 0 1px hsl(var(--h) 60% 80% / .15), 0 0 28px hsl(var(--h) 60% 60% / .18); }
.bz-orb.is-soon .bz-orb-halo { opacity: .35; }
.bz-orb.is-soon .bz-orb-label { opacity: .55; }
.bz-orb-btn.is-shake .bz-orb-body { animation: shake .5s; }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* --- La barre « Demande à Baze » */

.bz-ask {
  position: fixed; z-index: 5; left: 50%; transform: translateX(-50%);
  bottom: calc(max(22px, env(safe-area-inset-bottom)) + var(--kb, 0px));
  width: min(540px, calc(100vw - 32px)); transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
.bz-ask.is-focus { width: min(680px, calc(100vw - 32px)); }
.bz-ask-form {
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 10px 0 20px; border-radius: 28px; color: var(--dim);
  background: linear-gradient(180deg, rgba(34, 40, 96, .46), rgba(12, 15, 40, .58));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 14px 60px -14px rgba(70, 90, 255, .5), 0 2px 0 rgba(255, 255, 255, .06) inset, 0 -10px 24px -14px rgba(98, 228, 255, .14) inset;
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  transition: border-color .3s, box-shadow .3s;
}
.bz-ask-form:focus-within { border-color: rgba(98, 228, 255, .6); box-shadow: 0 0 0 4px rgba(98, 228, 255, .12), 0 14px 70px -10px rgba(98, 228, 255, .55), 0 2px 0 rgba(255, 255, 255, .08) inset; color: var(--cyan); }
.bz-spark { color: var(--cyan); filter: drop-shadow(0 0 8px rgba(98, 228, 255, .7)); }
.bz-ask input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; outline: none; color: var(--ink); font-size: 16px; }
.bz-ask input::placeholder { color: rgba(214, 222, 255, .5); opacity: 1; }
.bz-ask kbd { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; font: 500 12px var(--mono); color: var(--faint); }
.bz-ask-form:focus-within kbd { display: none; }
.bz-ask-help { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--dim); font: 600 14px var(--font); transition: background .2s, color .2s; }
.bz-ask-help:hover, .bz-ask-help[aria-expanded="true"] { background: rgba(98, 228, 255, .18); color: #fff; }
@media (max-width: 700px) { .bz-ask kbd { display: none; } }

.bz-drop {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 12px); max-height: min(52dvh, 460px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(26, 32, 80, .66), rgba(9, 12, 32, .8)); border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .8), 0 0 70px -20px rgba(98, 150, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  animation: drop-in .25s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes drop-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.bz-drop-label { padding: 12px 14px 6px; font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.bz-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; border: 0; border-radius: 18px; background: none; text-align: left; }
.bz-opt:hover, .bz-opt.is-on { background: rgba(255, 255, 255, .08); }
.bz-opt.is-add { background: linear-gradient(135deg, rgba(98, 228, 255, .16), rgba(143, 123, 255, .16)); box-shadow: inset 0 0 0 1px rgba(98, 228, 255, .32); }
.bz-opt-t { display: grid; gap: 1px; min-width: 0; }
.bz-opt-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-opt-t small { color: var(--faint); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-pill { flex: none; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.bz-empty-drop { padding: 18px 14px; color: var(--faint); }
.bz-help { padding: 4px 6px 10px; display: grid; gap: 2px; }
.bz-help-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 6px 12px; border: 0; border-radius: 16px; background: none; text-align: left; }
.bz-help-row:hover { background: rgba(255, 255, 255, .07); }
.bz-help-row code { font: 500 13px var(--mono); color: var(--cyan); }
.bz-help-row span { margin-left: auto; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.bz-help-text { padding: 4px 14px 8px; font-size: 13.5px; color: var(--faint); line-height: 1.55; }

/* --- Les panneaux : du verre dépoli au-dessus de la scène */

.bz-layer { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); }
.bz-scrim { position: absolute; inset: 0; background: radial-gradient(70% 72% at 50% 46%, rgba(3, 4, 14, .18), rgba(2, 3, 10, .66)); opacity: 0; transition: opacity .4s; }
.bz-layer.is-open .bz-scrim { opacity: 1; }
.bz-layer.is-leaving .bz-scrim { opacity: 0; transition-duration: .3s; }
.bz-panel {
  position: relative; display: flex; flex-direction: column; width: min(700px, 100%); height: auto; min-height: min(560px, 100%); max-height: min(100%, 790px); border-radius: 34px; overflow: hidden; outline: none;
  background: linear-gradient(165deg, rgba(40, 48, 112, .5), rgba(12, 14, 38, .64) 52%, rgba(7, 9, 26, .76));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 110px -30px hsl(var(--h) 100% 60% / .55);
  -webkit-backdrop-filter: blur(36px) saturate(1.7); backdrop-filter: blur(36px) saturate(1.7);
  transition: box-shadow .6s;
}
.bz-panel::before { /* un liseré de lumière en haut, de la teinte de la section */
  content: ''; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, hsl(var(--h) 100% 78% / .9), transparent);
}
.bz-layer.is-open .bz-panel { animation: panel-in .6s cubic-bezier(.16, .9, .2, 1) both; }
.bz-layer.is-leaving .bz-panel { animation: panel-out .32s cubic-bezier(.5, 0, .9, .4) both; }
@keyframes panel-in { from { opacity: 0; transform: scale(.4); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes panel-out { to { opacity: 0; transform: scale(.82); } }
.bz-grab { display: none; }
.bz-phead { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px 22px; }
.bz-dock { display: flex; gap: 8px; }
.bz-dock-btn, .bz-x {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05);
  color: rgba(224, 230, 255, .66); transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.bz-dock-btn:hover, .bz-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.bz-dock-btn.is-on {
  color: #fff; border-color: hsl(var(--h) 100% 80% / .5);
  background: radial-gradient(circle at 50% 56%, hsl(var(--h) 90% 20% / .95), hsl(var(--h) 92% 42%) 78%, hsl(var(--h) 100% 62%));
  box-shadow: 0 0 22px hsl(var(--h) 100% 60% / .6);
}
.bz-pbody {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 30px 40px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 34px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 34px), transparent 100%);
}
.bz-view { display: grid; gap: 4px; align-content: start; }
.bz-view.is-enter { animation: view-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } }

.bz-vtopwrap { display: grid; gap: 18px; margin-bottom: 4px; }
.bz-vtop { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.bz-vhead h2 { font: 700 clamp(28px, 4.4vw, 38px)/1.04 var(--font); letter-spacing: -.035em; color: #fff; outline: none; text-wrap: balance; }
.bz-vsub { margin-top: 10px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.bz-view > .bz-vhead { margin-bottom: 16px; }
.bz-nav { display: flex; gap: 6px; align-items: center; flex: none; }
.bz-nav button { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: var(--dim); }
.bz-nav button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.bz-nav .bz-now { padding: 0 16px; font: 600 13.5px var(--font); color: var(--cyan); border-color: rgba(98, 228, 255, .35); background: rgba(98, 228, 255, .1); }

.bz-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.bz-seg button { min-height: 40px; border: 0; border-radius: 999px; background: none; color: var(--dim); font: 600 14px var(--font); transition: background .25s, color .25s, box-shadow .25s; }
.bz-seg button:hover { color: #fff; }
.bz-seg button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, hsl(var(--h) 90% 40% / .85), hsl(var(--h2) 85% 38% / .85)); box-shadow: 0 6px 20px -6px hsl(var(--h) 100% 60% / .7), inset 0 1px 0 rgba(255, 255, 255, .25); }

.bz-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 6px; padding: 0 12px; font: 500 10.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.bz-row-end { display: flex; justify-content: flex-end; margin: 14px 0 4px; }

/* champs et boutons dans les panneaux */
.bz-view input, .bz-view textarea {
  width: 100%; min-height: 54px; padding: 14px 20px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .11); background: rgba(255, 255, 255, .055); color: var(--ink);
  font-size: 16px; outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
.bz-view input:focus-visible, .bz-view textarea:focus-visible { border-color: hsl(var(--h) 100% 72% / .75); box-shadow: 0 0 0 4px hsl(var(--h) 100% 60% / .16), 0 0 40px -10px hsl(var(--h) 100% 60% / .6); background: rgba(255, 255, 255, .08); }
.bz-view input::placeholder, .bz-view textarea::placeholder { color: rgba(214, 222, 255, .42); }
.bz-view textarea { resize: none; min-height: 54px; line-height: 1.4; }
.bz-add, .bz-composer { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 10px; }
.bz-add input { flex: 1; }
.bz-add-btn {
  flex: none; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 35% 28%, hsl(var(--h) 100% 78%), hsl(var(--h) 95% 52%) 55%, hsl(var(--h2) 90% 38%));
  box-shadow: 0 8px 30px -6px hsl(var(--h) 100% 60% / .8), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .25s;
}
.bz-add-btn:hover { transform: scale(1.07) rotate(90deg); }
.bz-add-btn:active { transform: scale(.94); }
.bz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bz-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 18px; border-radius: 21px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06);
  color: var(--ink); font: 600 14px var(--font); transition: background .2s, border-color .2s, transform .2s; white-space: nowrap;
}
.bz-chip:hover { background: rgba(255, 255, 255, .13); }
.bz-chip.primary { border-color: transparent; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 95% 56%), hsl(var(--h2) 90% 48%)); box-shadow: 0 8px 26px -8px hsl(var(--h) 100% 60% / .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.bz-chip.primary:hover { filter: brightness(1.1); }
.bz-chip.danger { color: var(--bad); border-color: rgba(255, 125, 141, .3); }
.bz-chip.danger:hover { background: rgba(255, 125, 141, .14); }
.bz-chip.quiet { color: var(--faint); background: none; border-color: transparent; }
.bz-edit { display: grid; gap: 4px; padding: 10px 6px 14px; }
.bz-edit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.bz-edit-grid label { display: grid; gap: 6px; }
.bz-edit-grid label span { padding-left: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }

/* tâches : un cercle qui s'allume quand c'est fait */
.bz-tasks { display: grid; gap: 2px; }
.bz-task { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 6px 10px; border-radius: 20px; transition: background .2s; }
.bz-task:hover { background: rgba(255, 255, 255, .045); }
.bz-check {
  position: relative; flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1.7px solid rgba(190, 204, 255, .5); background: none; color: #03202e;
  transition: background .3s, box-shadow .3s, border-color .3s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.bz-check::before { content: ''; position: absolute; inset: -9px; }
.bz-check:hover { border-color: hsl(var(--h) 100% 75%); box-shadow: 0 0 16px hsl(var(--h) 100% 65% / .45); }
.bz-check[aria-checked="true"] { border-color: transparent; background: radial-gradient(circle at 35% 30%, #c4fbff, hsl(var(--h) 95% 62%) 62%, hsl(var(--h2) 90% 48%)); box-shadow: 0 0 22px hsl(var(--h) 100% 62% / .7); transform: scale(1.04); }
.bz-task-title { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; text-align: left; font: 480 17.5px/1.35 var(--font); letter-spacing: -.005em; color: var(--ink); overflow-wrap: anywhere; }
.is-done .bz-task-title { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .22); }
.bz-task-src, .bz-task-tag { flex: none; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.bz-task-tag { background: rgba(255, 180, 84, .13); color: var(--amber); }
.bz-empty { padding: 26px 12px; color: var(--faint); font-size: 15.5px; }
.is-flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 55% { background: rgba(98, 228, 255, .2); box-shadow: 0 0 0 1px rgba(98, 228, 255, .5); } }

/* objectifs : des cartes avec une barre de lumière */
.bz-goals-list { display: grid; gap: 12px; margin-top: 10px; }
.bz-goal { padding: 18px 20px 20px; border-radius: 24px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); }
.bz-goal-top { display: flex; align-items: center; gap: 12px; }
.bz-goal-title { flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font: 560 18px/1.3 var(--font); letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.bz-goal-fig { flex: none; font: 450 13.5px var(--mono); color: var(--dim); }
.bz-goal-fig b { font-weight: 600; color: #fff; font-size: 17px; }
.bz-plus { flex: none; min-width: 44px; height: 36px; border: 1px solid hsl(var(--h) 100% 75% / .4); border-radius: 18px; background: hsl(var(--h) 100% 60% / .14); color: #fff; font: 600 14px var(--mono); }
.bz-plus:hover { background: hsl(var(--h) 100% 60% / .3); }
.bz-meter { display: block; height: 7px; margin-top: 16px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bz-meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, hsl(var(--h) 100% 62%), hsl(var(--h2) 100% 70%)); box-shadow: 0 0 16px hsl(var(--h) 100% 62% / .8); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bz-meter.is-full i { background: linear-gradient(90deg, #4ff0a8, #b6ffd9); box-shadow: 0 0 16px rgba(93, 240, 184, .8); }

/* notes : des cartes flottantes */
.bz-composer textarea { flex: 1; }
.bz-find { margin: 6px 0 14px; }
.bz-find input { min-height: 46px; border-radius: 16px; font-size: 15px; background: rgba(255, 255, 255, .035); }
.bz-notes-list { display: grid; gap: 10px; }
.bz-note { display: flex; align-items: flex-start; gap: 10px; padding: 16px 12px 14px 20px; border-radius: 22px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); }
.bz-note-body { flex: 1; min-width: 0; }
.bz-note-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.bz-note-meta { margin-top: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.bz-note-del { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--faint); opacity: .7; transition: background .2s, color .2s, opacity .2s; }
.bz-note-del:hover { background: rgba(255, 125, 141, .14); color: var(--bad); opacity: 1; }

/* Monteur Nomade et l'agence */
.bz-wait-group { margin-top: 14px; padding: 6px; border-radius: 26px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.bz-wait-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; font: 640 16.5px var(--font); }
.bz-wait-head span { flex: 1; }
.bz-wait-head:hover, .bz-wait-item:hover { background: rgba(255, 255, 255, .07); }
.bz-count { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 9px; border-radius: 14px; background: hsl(var(--h) 100% 60% / .22); border: 1px solid hsl(var(--h) 100% 75% / .5); color: #fff; font: 600 13px var(--mono); }
.bz-wait-item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 18px; color: var(--ink); }
.bz-wait-item span { flex: 1; min-width: 0; display: grid; gap: 1px; }
.bz-wait-item b { font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-wait-item small { font-size: 13.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-wait-item .bz-ic, .bz-wait-head .bz-ic { color: var(--faint); }
.bz-wait-more { display: block; padding: 10px 14px 12px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.bz-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; margin: 6px 0 8px; border-radius: 29px; color: #fff; font: 650 16px var(--font);
  background: linear-gradient(135deg, hsl(var(--h) 95% 56%), hsl(var(--h2) 90% 48%)); box-shadow: 0 14px 40px -12px hsl(var(--h) 100% 60% / .85), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .25s, filter .25s;
}
.bz-cta:hover { transform: translateY(-2px); filter: brightness(1.1); }
.bz-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 10px; }
.bz-stat { display: grid; gap: 6px; padding: 20px; border-radius: 24px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); }
.bz-stat.big { grid-column: 1 / -1; padding: 26px 24px; background: linear-gradient(150deg, hsl(var(--h) 90% 40% / .3), rgba(255, 255, 255, .03)); }
.bz-stat b { font: 700 28px/1 var(--font); letter-spacing: -.03em; color: #fff; }
.bz-stat.big b { font-size: 54px; }
.bz-stat span { font-size: 14px; color: var(--dim); }

/* Un panneau ouvert : le reste de l'écran s'efface derrière le verre */
.bz-orb, .bz-hud, .bz-ask, .bz-lede { transition: opacity .5s; }
.bz-ask { transition: opacity .5s, width .5s cubic-bezier(.2, .8, .2, 1), transform .5s; }
.has-panel .bz-orb { opacity: .16; }
.has-panel .bz-hud, .has-panel .bz-lede { opacity: 0; }
.has-panel .bz-ask { opacity: 0; transform: translate(-50%, 24px); pointer-events: none; }

/* --- Message qui disparaît */

.bz-toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom) + var(--kb, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 16px;
  max-width: calc(100vw - 32px); padding: 14px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 520;
  background: linear-gradient(180deg, rgba(34, 40, 96, .8), rgba(10, 13, 34, .88)); border: 1px solid rgba(255, 255, 255, .15); color: #fff;
  box-shadow: 0 20px 60px -14px rgba(0, 0, 0, .8), 0 0 50px -14px rgba(98, 150, 255, .5); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  animation: toast-in .4s cubic-bezier(.2, .9, .2, 1) both;
}
.has-panel .bz-toast { bottom: calc(28px + env(safe-area-inset-bottom)); }
.bz-toast button { border: 0; background: none; color: var(--cyan); font-weight: 700; padding: 6px 2px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }

/* --- Connexion et erreurs */

.bz-solo { position: fixed; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; }
.bz-solo-card {
  width: 100%; max-width: 410px; display: grid; gap: 22px; padding: 34px 30px 30px; border-radius: 34px;
  background: linear-gradient(165deg, rgba(40, 48, 112, .46), rgba(10, 12, 34, .7)); border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 100px -30px rgba(98, 130, 255, .5);
  -webkit-backdrop-filter: blur(34px) saturate(1.6); backdrop-filter: blur(34px) saturate(1.6); margin-top: clamp(80px, 22vh, 220px);
}
.bz-solo-card h1 { font: 700 26px/1.15 var(--font); letter-spacing: -.03em; }
.bz-solo-label { font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.bz-solo-foot { font-size: 13px; color: var(--faint); }
.bz-brand { display: inline-flex; align-items: center; gap: 12px; font: 760 20px/1.2 var(--font); letter-spacing: -.02em; }
.bz-brand img { display: block; border-radius: 26%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 0 30px rgba(98, 130, 255, .5); }
.bz-brand-big { font-size: 24px; }
.bz-form { display: grid; gap: 16px; }
.bz-field { display: grid; gap: 8px; }
.bz-field > span { font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.bz-form input { width: 100%; min-height: 54px; padding: 14px 18px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); font-size: 16px; outline: none; transition: border-color .25s, box-shadow .25s; }
.bz-form input:focus-visible { border-color: rgba(98, 228, 255, .7); box-shadow: 0 0 0 4px rgba(98, 228, 255, .14), 0 0 40px -10px rgba(98, 228, 255, .6); }
.bz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 24px; border: 0; border-radius: 27px; color: #fff; font: 650 16px var(--font);
  background: linear-gradient(135deg, #3a7bff, #8f5bff); box-shadow: 0 14px 40px -12px rgba(110, 120, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .3); transition: filter .2s, transform .2s;
}
.bz-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.bz-btn.ghost { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.bz-notice { padding: 13px 16px; border-radius: 16px; background: rgba(255, 125, 141, .14); border: 1px solid rgba(255, 125, 141, .3); font-size: 14px; }

/* --- Téléphone : le panneau devient une feuille qu'on tire vers le bas */

@media (max-width: 700px) {
  .bz-layer { place-items: end center; padding: 0; }
  .bz-panel { width: 100%; height: auto; min-height: min(60dvh, 100%); max-height: min(86dvh, 100%); border-radius: 32px 32px 0 0; }
  .bz-layer.is-open .bz-panel { animation: sheet-in .55s cubic-bezier(.16, .9, .2, 1) both; }
  .bz-layer.is-leaving .bz-panel { animation: sheet-out .32s cubic-bezier(.5, 0, .9, .4) both; }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
  .bz-grab { display: block; flex: none; padding: 10px 0 0; touch-action: none; cursor: grab; }
  .bz-grab i { display: block; width: 44px; height: 5px; margin: 0 auto; border-radius: 3px; background: rgba(255, 255, 255, .28); }
  .bz-phead { padding: 8px 14px 4px 16px; }
  .bz-dock { gap: 5px; }
  .bz-dock-btn, .bz-x { width: 42px; height: 42px; }
  .bz-pbody { padding: 6px 18px 36px; }
  .bz-hud { padding-left: 18px; padding-right: 16px; }
  .bz-edit-grid { grid-template-columns: 1fr 1fr; }
  .bz-edit-grid label:first-child { grid-column: 1 / -1; }
  .bz-vhead h2 { font-size: 29px; }
  .bz-vtop .bz-nav button { min-width: 42px; height: 42px; }
  .bz-orb-label { font-size: 12.5px; }
  .bz-lede { font-size: 15.5px; }
}

/* --- Pour qui réduit les animations : une scène fixe, des panneaux qui apparaissent sans voyager */

@media (prefers-reduced-motion: reduce) {
  .bz-orb-btn { animation: none; opacity: 1; }
  .bz-layer.is-open .bz-panel, .bz-layer.is-leaving .bz-panel { animation: none; }
  .bz-view.is-enter, .bz-drop, .bz-toast, .is-flash { animation: none; }
  * { transition-duration: .01ms !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bz-panel, .bz-solo-card, .bz-drop { background: rgba(12, 14, 36, .96); }
  .bz-ask-form { background: rgba(14, 18, 44, .92); }
}
