/* Bac Hub — player.css : lecteur de leçons animées + podcast.
   Autonome : utilise les tokens de base.css s'ils existent, sinon ses propres valeurs. */

.bhv, .bhp {
  --bh-accent: #2F80ED;
  --pl-navy: var(--navy, #0B2545);
  --pl-ink: #EAF2FF;
  --pl-dim: #A9BCD8;
  --pl-amber: var(--amber, #F5A524);
  --pl-green: #2BC48A;
  --pl-acc-soft: color-mix(in srgb, var(--bh-accent) 22%, transparent);
  --pl-acc-light: color-mix(in srgb, var(--bh-accent) 55%, #ffffff);
  --pl-font-h: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --pl-font: "IBM Plex Sans Arabic", "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --spd: 1;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  font-family: var(--pl-font);
  -webkit-tap-highlight-color: transparent;
}
.bhv *, .bhv *::before, .bhv *::after, .bhp *, .bhp *::before, .bhp *::after { box-sizing: border-box; }
.bhv .katex, .bhp .katex, .bhv .bh-math, .bhv .bh-mathd { direction: ltr; unicode-bidi: isolate; }
.bhv .bh-mathd { display: block; margin: .3em 0; }
.bhv .bh-tex { font-family: "Cambria Math", "Times New Roman", serif; font-style: italic; direction: ltr; unicode-bidi: isolate; }

/* ================================================================ VIDÉO */
.bhv {
  position: relative;
  container-type: inline-size;
  container-name: bhv;
  background: #071a33;
  color: var(--pl-ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(11, 37, 69, .28);
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}
.bhv:focus-visible { box-shadow: 0 0 0 3px var(--bh-accent), 0 18px 50px rgba(11, 37, 69, .28); }
.bhv button { font: inherit; color: inherit; }
.bhv button:focus-visible { outline: 3px solid var(--pl-amber); outline-offset: 2px; }

.bhv-screen { position: relative; }
.bhv-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  container-type: size;
  container-name: stage;
  background:
    radial-gradient(120% 90% at 85% 0%, #123a6b 0%, transparent 55%),
    linear-gradient(160deg, #0d2a52 0%, #0B2545 45%, #06162d 100%);
  isolation: isolate;
}
@container bhv (max-width: 540px) {
  .bhv-stage { aspect-ratio: 4 / 3; }
}

/* fond animé */
.bhv-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bhv-bg i {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55;
  transition: left 1.6s var(--ease), top 1.6s var(--ease);
  animation: bhv-float 14s ease-in-out infinite alternate;
}
.bhv-bg .b1 { width: 46cqw; height: 46cqw; left: calc(var(--bgx, 60%) - 23cqw); top: calc(var(--bgy, 30%) - 30cqw); background: color-mix(in srgb, var(--bh-accent) 60%, transparent); }
.bhv-bg .b2 { width: 34cqw; height: 34cqw; left: calc(100% - var(--bgx, 60%) - 17cqw); top: calc(100% - var(--bgy, 30%) - 6cqw); background: rgba(47, 128, 237, .35); animation-delay: -5s; }
.bhv-bg .b3 { width: 18cqw; height: 18cqw; left: 8%; top: 62%; background: rgba(245, 165, 36, .22); animation-delay: -9s; }
.bhv-grain {
  position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px);
  background-size: 2.4cqw 2.4cqw;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
}
@keyframes bhv-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(3cqw, -2cqw) scale(1.12); } }
.bhv-stage.paused .bhv-scenes *, .bhv-stage.paused .bhv-scenes *::before, .bhv-stage.paused .bhv-bg * { animation-play-state: paused !important; }

/* HUD */
.bhv-hud {
  position: absolute; z-index: 3; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center;
  padding: 2.4cqh 3cqw; font-size: max(10px, 1.35cqw); color: rgba(234, 242, 255, .65); pointer-events: none;
  opacity: 0; transition: opacity .4s;
}
.bhv.is-started .bhv-hud { opacity: 1; }
.bhv-hud-l { display: inline-flex; align-items: center; gap: .6em; max-width: 70%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bhv-hud-l::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--bh-accent); box-shadow: 0 0 0 .25em var(--pl-acc-soft); flex: none; }
.bhv-hud-n { font-variant-numeric: tabular-nums; letter-spacing: .05em; }

/* scènes */
.bhv-scenes { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.bhv-scene {
  position: absolute; inset: 0;
  padding: 9cqh 7cqw 15cqh;
  display: flex; flex-direction: column; justify-content: center; align-items: stretch;
  overflow: hidden;
  opacity: 0; transform: translateX(-4cqw) scale(.98); filter: blur(6px);
  transition: opacity calc(.55s / var(--spd)) var(--ease), transform calc(.65s / var(--spd)) var(--ease), filter calc(.55s / var(--spd)) var(--ease);
}
.bhv-scene[data-dir="prev"] { transform: translateX(4cqw) scale(.98); }
.bhv-scene.in { opacity: 1; transform: none; filter: none; }
.bhv-scene.leave { opacity: 0; transform: translateX(5cqw) scale(1.02); filter: blur(6px); pointer-events: none; }
.bhv-scene.leave[data-dir="prev"] { transform: translateX(-5cqw) scale(1.02); }
.bhv-scene.is-fill { padding-top: 8cqh; padding-bottom: 13cqh; }
.bhv.cc-off .bhv-scene { padding-bottom: 9cqh; }

.bhv-v { --fit: 1; font-size: max(11px, calc(var(--fit) * 2.5cqw)); line-height: 1.55; width: 100%; }
.bhv-v.fill { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bhv-h {
  font-family: var(--pl-font-h); font-weight: 700; color: #fff; margin: 0 0 .7em;
  font-size: 1.45em; line-height: 1.25; display: flex; align-items: center; gap: .5em;
}
.bhv-h::before { content: ""; width: .28em; height: 1.05em; border-radius: 99px; background: var(--bh-accent); flex: none; }
.bhv-cap { margin: .5em 0 0; text-align: center; color: var(--pl-dim); font-size: .92em; }
.bhv-plot { flex: 1; min-height: 0; position: relative; }
.bhv-plot svg { position: absolute; inset: 0; display: block; }

/* --- title */
.bhv-title { text-align: center; position: relative; }
.bhv-t-h { font-family: var(--pl-font-h); font-weight: 700; font-size: 2.4em; line-height: 1.2; margin: 0; color: #fff; letter-spacing: -.005em; }
.bhv-w {
  display: inline-block; opacity: 0; transform: translateY(.55em) rotate(-3deg) scale(.9);
  transition: opacity calc(.5s / var(--spd)) var(--ease), transform calc(.7s / var(--spd)) var(--pop);
  transition-delay: calc(var(--i) * .11s / var(--spd));
}
.bhv-title.on .bhv-w { opacity: 1; transform: none; }
.bhv-title .bhv-w:nth-child(3n+2) { color: var(--pl-acc-light); }
.bhv-t-bar {
  width: 22%; height: .5cqh; min-height: 3px; margin: .6em auto .7em; border-radius: 99px;
  background: linear-gradient(90deg, var(--pl-amber), var(--bh-accent));
  transform: scaleX(0); transition: transform calc(.8s / var(--spd)) var(--ease) calc((.2s + var(--nw, 3) * .1s) / var(--spd));
}
.bhv-title.on .bhv-t-bar { transform: scaleX(1); }
.bhv-t-sub { margin: 0 auto; max-width: 80%; color: var(--pl-dim); font-size: 1.1em; opacity: 0; transform: translateY(.6em); transition: all calc(.6s / var(--spd)) var(--ease) calc((.45s + var(--nw, 3) * .1s) / var(--spd)); }
.bhv-title.on .bhv-t-sub { opacity: 1; transform: none; }
.bhv-t-deco { position: absolute; inset: -20% 0; pointer-events: none; z-index: -1; }
.bhv-t-deco i { position: absolute; border: 2px solid var(--pl-acc-soft); border-radius: 50%; opacity: 0; transition: opacity 1s .3s, transform 1.4s var(--ease) .2s; transform: scale(.6); }
.bhv-t-deco i:nth-child(1) { width: 18cqw; height: 18cqw; top: 0; right: 4%; }
.bhv-t-deco i:nth-child(2) { width: 9cqw; height: 9cqw; bottom: 6%; left: 8%; border-color: rgba(245, 165, 36, .35); }
.bhv-t-deco i:nth-child(3) { width: 4cqw; height: 4cqw; top: 18%; left: 22%; background: var(--pl-acc-soft); border: 0; }
.bhv-title.on .bhv-t-deco i { opacity: 1; transform: scale(1); }

/* --- bullets / steps */
.bhv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55em; }
.bhv-item {
  display: flex; align-items: flex-start; gap: .75em; padding: .45em .8em; border-radius: .7em;
  opacity: 0; transform: translateX(-1.6em);
  transition: opacity calc(.45s / var(--spd)) var(--ease), transform calc(.55s / var(--spd)) var(--ease), background .4s, color .4s;
  color: #dfe9f8;
}
.bhv-item.on { opacity: 1; transform: none; }
.bhv-item.cur { background: rgba(255, 255, 255, .07); color: #fff; box-shadow: inset -.22em 0 0 var(--bh-accent); }
.bhv-bullets.all .bhv-item.cur { box-shadow: none; background: transparent; }
.bhv-tx { flex: 1; min-width: 0; }
.bhv-tx strong { color: var(--pl-amber); font-weight: 600; }
.bhv-bullets .bhv-mk { flex: none; width: .62em; height: .62em; margin-top: .48em; border-radius: 50%; background: var(--bh-accent); box-shadow: 0 0 0 .22em var(--pl-acc-soft); transition: transform .4s var(--pop); }
.bhv-bullets .bhv-item.cur .bhv-mk { transform: scale(1.35); background: var(--pl-amber); box-shadow: 0 0 0 .25em rgba(245, 165, 36, .25); }
.bhv-steps .bhv-list { gap: .45em; position: relative; }
.bhv-steps .bhv-mk {
  flex: none; position: relative; width: 1.75em; height: 1.75em; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .25); font-family: var(--pl-font-h); font-size: .85em;
  transition: background .35s, border-color .35s, transform .4s var(--pop);
}
.bhv-steps .bhv-mk b { font-weight: 700; }
.bhv-steps .bhv-mk svg { position: absolute; width: 70%; height: 70%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.bhv-steps .bhv-item.cur .bhv-mk { background: var(--bh-accent); border-color: var(--bh-accent); transform: scale(1.12); box-shadow: 0 0 0 .3em var(--pl-acc-soft); }
.bhv-steps .bhv-item.done .bhv-mk { background: var(--pl-green); border-color: var(--pl-green); }
.bhv-steps .bhv-item.done .bhv-mk b { opacity: 0; }
.bhv-steps .bhv-item.done .bhv-mk svg { opacity: 1; }
.bhv-steps.all .bhv-item.cur .bhv-mk { background: var(--pl-green); border-color: var(--pl-green); transform: none; box-shadow: none; }
.bhv-steps.all .bhv-item.cur .bhv-mk b { opacity: 0; }
.bhv-steps.all .bhv-item.cur .bhv-mk svg { opacity: 1; }
.bhv-steps .bhv-item.done { color: #b9c9e0; }
.bhv-steps .bhv-tx { padding-top: .1em; }

/* --- formula */
.bhv-formula { text-align: center; }
.bhv-f-box { display: inline-block; position: relative; padding: .6em 1.4em .9em; max-width: 100%; }
.bhv-f-box::before {
  content: ""; position: absolute; inset: 0; border-radius: 1em; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12); opacity: 0; transform: scale(.94);
  transition: opacity .6s, transform .8s var(--ease);
}
.bhv-f-tex { font-size: 1.9em; color: #fff; opacity: 0; transform: scale(.9); filter: blur(8px); transition: opacity calc(.8s / var(--spd)) var(--ease), transform calc(.9s / var(--spd)) var(--pop), filter calc(.8s / var(--spd)); overflow-x: auto; overflow-y: hidden; }
.bhv-f-tex .katex-display { margin: .2em 0; }
.bhv-formula.on .bhv-f-tex { opacity: 1; transform: none; filter: none; }
.bhv-formula.on .bhv-f-box::before { opacity: 1; transform: none; }
.bhv-f-ul { display: block; width: 70%; height: .6em; margin: 0 auto; overflow: visible; }
.bhv-f-ul path { fill: none; stroke: var(--pl-amber); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset calc(.9s / var(--spd)) var(--ease); }
.bhv-formula.on2 .bhv-f-ul path { stroke-dashoffset: 0; }
.bhv-f-cap { margin: .7em auto 0; max-width: 85%; color: var(--pl-dim); font-size: 1.05em; opacity: 0; transform: translateY(.5em); transition: all calc(.6s / var(--spd)) var(--ease) .2s; }
.bhv-formula.on2 .bhv-f-cap { opacity: 1; transform: none; }

/* --- graph */
.bhv-gsvg { font-family: "IBM Plex Sans", "Segoe UI", sans-serif; overflow: visible; }
.bhv-grid line { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.bhv-axes line { stroke: rgba(234, 242, 255, .75); stroke-width: 1.6; }
.bhv-ax-head { fill: rgba(234, 242, 255, .85); }
.bhv-ticks text { fill: rgba(234, 242, 255, .6); }
.bhv-ticks .bhv-axn { fill: #fff; font-style: italic; font-weight: 600; }
.bhv-curve {
  fill: none; stroke: var(--pl-acc-light); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--bh-accent) 70%, transparent));
  transition: stroke-dashoffset calc(2.2s / var(--spd)) cubic-bezier(.45, .05, .35, 1);
}
.bhv-pt { opacity: 0; transition: opacity .4s; }
.bhv-pt.on { opacity: 1; }
.bhv-proj { fill: none; stroke: rgba(245, 165, 36, .55); stroke-width: 1.3; stroke-dasharray: 4 4; }
.bhv-pt-dot { fill: var(--pl-amber); stroke: #0B2545; stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--pop); }
.bhv-pt.on .bhv-pt-dot { transform: scale(1); }
.bhv-pt-ring { fill: none; stroke: var(--pl-amber); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.bhv-pt.on .bhv-pt-ring { animation: bhv-ring 1.4s var(--ease) 1; }
.bhv-pt-l { fill: #fff; font-weight: 700; paint-order: stroke; stroke: #0B2545; stroke-width: 4px; stroke-linejoin: round; }
@keyframes bhv-ring { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }

/* --- timeline (RTL : la frise avance de droite à gauche) */
.bhv-tl { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); align-items: start; padding: 2.6em 0 0; }
.bhv-tl.alt { padding: 0; align-items: center; }
.bhv-tl-line { position: absolute; inset-inline: calc(50% / var(--n)); top: 2.6em; height: .3em; margin-top: -.15em; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bhv-tl.alt .bhv-tl-line { top: 50%; }
.bhv-tl-line i { position: absolute; inset-block: 0; right: 0; width: 0; background: linear-gradient(270deg, var(--bh-accent), var(--pl-amber)); border-radius: inherit; transition: width calc(.9s / var(--spd)) var(--ease); }
.bhv-tl-ev { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 .3em; opacity: 0; transform: translateY(.8em); transition: opacity .5s, transform .6s var(--pop); }
.bhv-tl-ev.on { opacity: 1; transform: none; }
.bhv-tl-dot { width: 1.05em; height: 1.05em; margin-top: -.52em; border-radius: 50%; background: #0B2545; border: .2em solid var(--bh-accent); transition: transform .4s var(--pop), background .3s; }
.bhv-tl-ev.cur .bhv-tl-dot { background: var(--pl-amber); border-color: #fff; transform: scale(1.35); box-shadow: 0 0 0 .35em rgba(245, 165, 36, .25); }
.bhv-tl-date { margin-top: .6em; font-family: var(--pl-font-h); font-weight: 700; font-size: 1.15em; color: var(--pl-amber); line-height: 1.2; }
.bhv-tl-lab { margin-top: .25em; font-size: .86em; color: #dbe6f6; line-height: 1.4; }
.bhv-tl-txt { display: flex; flex-direction: column; align-items: center; }
.bhv-tl.alt .bhv-tl-ev { display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; height: 8.4em; }
.bhv-tl.alt .bhv-tl-dot { grid-row: 2; margin: 0; }
.bhv-tl.alt .bhv-tl-txt { grid-row: 3; align-self: start; padding-top: .2em; }
.bhv-tl.alt .bhv-tl-ev:nth-child(odd) .bhv-tl-txt { grid-row: 1; align-self: end; padding-bottom: .5em; flex-direction: column-reverse; }
.bhv-tl.alt .bhv-tl-ev:nth-child(odd) .bhv-tl-date { margin-top: .2em; }
.bhv-tl.alt .bhv-tl-ev:nth-child(odd) .bhv-tl-lab { margin-top: 0; }

/* --- map */
.bhv-msvg { font-family: var(--pl-font); }
.bhv-m-sea { fill: #0f3563; }
.bhv-m-sea2 { fill: #0f3563; }
.bhv-m-grat { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.bhv-m-land { fill: #1d4f86; stroke: rgba(173, 208, 255, .35); stroke-width: 1; stroke-linejoin: round; }
.bhv-m-dz { fill: color-mix(in srgb, var(--bh-accent) 70%, #ffffff); stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; opacity: .95; }
.bhv-m-dz.big { fill: color-mix(in srgb, var(--bh-accent) 45%, #123d6e); stroke: var(--pl-acc-light); stroke-width: 2.2; }
.bhv-m-dzfill { pointer-events: none; }
.bhv-m-dotp { fill: rgba(255, 255, 255, .22); }
.bhv-m-frame { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 1.2; }
.bhv-m-sealab { fill: rgba(173, 208, 255, .55); font-style: italic; font-size: .8em; letter-spacing: .05em; }
.bhv-m-name { fill: rgba(255, 255, 255, .35); font-family: var(--pl-font-h); font-weight: 700; font-size: 2.2em; }
.bhv-m-north path { fill: var(--pl-amber); }
.bhv-m-north text { fill: rgba(255, 255, 255, .7); font-size: .75em; font-weight: 700; }
.bhv-mk-g { opacity: 0; transition: opacity .4s; }
.bhv-mk-g.on { opacity: 1; }
.bhv-m-pin { fill: var(--pl-amber); stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: scale(0) translateY(-40%); transition: transform .55s var(--pop); }
.bhv-mk-g.on .bhv-m-pin { transform: none; }
.bhv-m-pulse { fill: rgba(245, 165, 36, .5); transform-box: fill-box; transform-origin: center; opacity: 0; }
.bhv-mk-g.on .bhv-m-pulse { animation: bhv-pulse 2s ease-out infinite; }
.bhv-mk-g.cur .bhv-m-pulse { animation-duration: 1.2s; }
.bhv-m-lab { fill: #fff; font-weight: 700; paint-order: stroke; stroke: #0B2545; stroke-width: 4px; stroke-linejoin: round; }
.bhv-mk-g.cur .bhv-m-lab { fill: var(--pl-amber); }
@keyframes bhv-pulse { 0% { opacity: .85; transform: scale(1); } 100% { opacity: 0; transform: scale(4.2); } }

/* --- compare */
.bhv-cmp { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6em; align-items: stretch; }
.bhv-col { border-radius: 1em; padding: .8em 1em; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); opacity: 0; transition: opacity calc(.5s / var(--spd)), transform calc(.75s / var(--spd)) var(--ease); }
.bhv-col.a { transform: translateX(30%); border-top: .25em solid var(--bh-accent); }
.bhv-col.b { transform: translateX(-30%); border-top: .25em solid var(--pl-amber); }
.bhv-compare.on .bhv-col { opacity: 1; transform: none; }
.bhv-col h4 { margin: 0 0 .5em; font-family: var(--pl-font-h); font-size: 1.15em; font-weight: 700; color: #fff; }
.bhv-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35em; }
.bhv-ci { position: relative; padding-inline-start: 1em; color: #dbe6f6; opacity: 0; transform: translateY(.5em); transition: opacity .45s, transform .5s var(--ease), color .3s; font-size: .95em; }
.bhv-ci::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: .42em; height: .42em; border-radius: 50%; background: var(--bh-accent); }
.bhv-col.b .bhv-ci::before { background: var(--pl-amber); }
.bhv-ci.on { opacity: 1; transform: none; }
.bhv-ci.cur { color: #fff; }
.bhv-vs { display: grid; place-items: center; }
.bhv-vs span { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: #fff; color: #0B2545; font-family: var(--pl-font-h); font-weight: 800; font-size: .8em; box-shadow: 0 0 0 .4em rgba(255, 255, 255, .1); transform: scale(0) rotate(-90deg); transition: transform .6s var(--pop) .35s; }
.bhv-compare.on .bhv-vs span { transform: none; }

/* --- cycle */
.bhv-cy-wrap { flex: 1; min-height: 0; display: grid; place-items: center; }
.bhv-cy { position: relative; width: min(100%, 58cqh); aspect-ratio: 1; }
.bhv-cy > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bhv-cy-ring { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 7; }
.bhv-arc { fill: none; stroke: var(--pl-acc-light); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset calc(.8s / var(--spd)) var(--ease); }
.bhv-arc.on { stroke-dashoffset: 0; }
.bhv-arc-head { fill: var(--pl-acc-light); }
.bhv-cy-orbit { opacity: 0; transform-origin: 50px 50px; transform-box: view-box; }
.bhv-cy-orbit circle { fill: var(--pl-amber); filter: drop-shadow(0 0 2px var(--pl-amber)); }
.bhv-cycle.all .bhv-cy-orbit { opacity: 1; animation: bhv-spin calc(6s / var(--spd)) linear infinite; }
@keyframes bhv-spin { to { transform: rotate(360deg); } }
.bhv-cy-n {
  position: absolute; transform: translate(50%, -50%) scale(.4); /* RTL : left est le coin, on recentre */
  max-width: 34%; min-width: 18%; padding: .35em .7em; border-radius: .9em; text-align: center; line-height: 1.3; font-size: .82em;
  background: #133965; border: 2px solid rgba(255, 255, 255, .18); color: #fff; opacity: 0;
  transition: opacity .4s, transform .55s var(--pop), background .3s, border-color .3s;
  box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .25);
}
.bhv-cy-n { transform: translate(-50%, -50%) scale(.4); }
.bhv-cy-n.on { opacity: 1; transform: translate(-50%, -50%); }
.bhv-cy-n.cur { background: var(--bh-accent); border-color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.bhv-cy-c { position: absolute; left: 50%; top: 50%; width: 16%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.bhv-cy-c svg { width: 55%; height: 55%; fill: none; stroke: var(--pl-amber); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bhv-cycle.all .bhv-cy-c svg { animation: bhv-spin calc(4s / var(--spd)) linear infinite reverse; }
.bhv-cycle .bhv-h { margin-bottom: .3em; }

/* --- flow */
.bhv-fl { display: flex; align-items: center; justify-content: center; gap: .4em; flex-wrap: wrap; row-gap: 1em; }
.bhv-fl-n {
  position: relative; flex: 0 1 auto; min-width: 5.5em; max-width: 12em; padding: .8em 1em .7em; border-radius: 1em; text-align: center; line-height: 1.35;
  background: rgba(255, 255, 255, .07); border: 2px solid rgba(255, 255, 255, .16); color: #fff;
  opacity: 0; transform: translateY(1em) scale(.85); transition: opacity .45s, transform .6s var(--pop), background .3s, border-color .3s;
}
.bhv-fl-n em { position: absolute; top: -.8em; inset-inline-start: 50%; transform: translateX(50%); width: 1.5em; height: 1.5em; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .75em; font-weight: 700; background: #0B2545; border: 2px solid var(--bh-accent); }
.bhv-fl-n.on { opacity: 1; transform: none; }
.bhv-fl-n.cur { background: var(--pl-acc-soft); border-color: var(--bh-accent); box-shadow: 0 0 0 .3em var(--pl-acc-soft); }
.bhv-fl-ar { width: 2.4em; flex: none; opacity: 0; transform: scaleX(0); transform-origin: right center; transition: opacity .3s, transform .45s var(--ease); }
.bhv-fl-ar svg { display: block; width: 100%; fill: none; stroke: var(--pl-amber); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bhv-fl-ar.on { opacity: 1; transform: none; }
.bhv-fl.many .bhv-fl-n { font-size: .9em; min-width: 4.5em; }
.bhv-fl.many .bhv-fl-ar { width: 1.6em; }

/* --- keyfig */
.bhv-keyfig { text-align: center; position: relative; }
.bhv-k-val { font-family: var(--pl-font-h); font-weight: 800; font-size: 5em; line-height: 1; color: #fff; display: inline-flex; align-items: baseline; gap: .1em; font-variant-numeric: tabular-nums; opacity: 0; transform: scale(.6); transition: opacity .5s, transform .8s var(--pop); text-shadow: 0 .06em .3em color-mix(in srgb, var(--bh-accent) 60%, transparent); }
.bhv-k-pre, .bhv-k-post { font-size: .5em; color: var(--pl-amber); }
.bhv-keyfig.on .bhv-k-val { opacity: 1; transform: none; }
.bhv-k-lab { margin: .6em auto 0; max-width: 75%; font-size: 1.2em; color: #dbe6f6; opacity: 0; transform: translateY(.6em); transition: all .6s var(--ease) .5s; }
.bhv-keyfig.on .bhv-k-lab { opacity: 1; transform: none; }
.bhv-k-burst { position: absolute; left: 50%; top: 38%; width: 0; height: 0; z-index: -1; }
.bhv-k-burst i { position: absolute; left: 0; top: 0; width: 26cqw; height: 26cqw; margin: -13cqw; border-radius: 50%; border: 2px solid var(--pl-acc-soft); opacity: 0; }
.bhv-keyfig.on .bhv-k-burst i { animation: bhv-burst 3s var(--ease) infinite; }
.bhv-keyfig.on .bhv-k-burst i:nth-child(2) { animation-delay: 1s; }
.bhv-keyfig.on .bhv-k-burst i:nth-child(3) { animation-delay: 2s; }
@keyframes bhv-burst { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }

/* --- quote */
.bhv-quote { position: relative; text-align: center; padding: 0 4%; }
.bhv-q-mark { position: absolute; top: -.45em; right: 2%; font-family: Georgia, serif; font-size: 7em; line-height: 1; color: var(--bh-accent); opacity: 0; transform: translateY(.2em); transition: all .8s var(--ease); }
.bhv-quote.on .bhv-q-mark { opacity: .55; transform: none; }
.bhv-quote blockquote { margin: 0; font-family: var(--pl-font-h); font-weight: 500; font-size: 1.55em; line-height: 1.55; color: #fff; }
.bhv-qw { display: inline-block; opacity: 0; filter: blur(4px); transform: translateY(.3em); transition: opacity calc(.5s / var(--spd)), filter calc(.5s / var(--spd)), transform calc(.5s / var(--spd)) var(--ease); transition-delay: calc(var(--i) * .07s / var(--spd)); }
.bhv-quote.on .bhv-qw { opacity: 1; filter: none; transform: none; }
.bhv-quote cite { display: block; margin-top: .9em; font-style: normal; color: var(--pl-amber); font-weight: 600; opacity: 0; transition: opacity .6s calc((.3s + var(--nw, 10) * .07s) / var(--spd)); }
.bhv-quote.on cite { opacity: 1; }

/* personnage (récits d'histoire, philosophes, poètes) */
.bhv-char { display: flex; flex-direction: column; align-items: center; gap: 1.1em; text-align: center; }
.bhv-c-card { display: flex; align-items: center; gap: 1.2em; opacity: 0; transform: translateY(.8em) scale(.96); transition: opacity calc(.7s / var(--spd)) var(--ease), transform calc(.8s / var(--spd)) var(--ease); }
.bhv-char.on .bhv-c-card { opacity: 1; transform: none; }
.bhv-c-portrait { position: relative; width: 7.2em; height: 7.2em; flex: none; border-radius: 50%; color: rgba(255,255,255,.88);
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--bh-accent) 70%, #fff 0%), var(--bh-accent) 55%, #0B2545 100%);
  box-shadow: 0 0 0 .22em rgba(255,255,255,.14), 0 0 0 .5em color-mix(in srgb, var(--bh-accent) 35%, transparent), 0 1em 2.4em rgba(0,0,0,.35); overflow: hidden; }
.bhv-c-portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bhv-char.on .bhv-c-portrait { animation: bhv-c-breathe calc(5s / var(--spd)) ease-in-out infinite; }
@keyframes bhv-c-breathe { 50% { box-shadow: 0 0 0 .22em rgba(255,255,255,.2), 0 0 0 .8em color-mix(in srgb, var(--bh-accent) 22%, transparent), 0 1em 2.4em rgba(0,0,0,.35); } }
.bhv-c-ini { position: absolute; bottom: .35em; left: 50%; transform: translateX(-50%); font-family: var(--pl-font-h); font-weight: 700; font-size: .95em; color: #0B2545; background: var(--pl-amber); border-radius: 999px; padding: .1em .65em; white-space: nowrap; }
.bhv-c-id { text-align: start; }
.bhv-c-id h3 { margin: 0; font-family: var(--pl-font-h); font-weight: 700; font-size: 1.75em; color: #fff; line-height: 1.25; }
.bhv-c-role { margin: .25em 0 0; color: rgba(255,255,255,.82); font-size: 1.05em; }
.bhv-c-years { margin: .35em 0 0; color: var(--pl-amber); font-weight: 600; letter-spacing: .04em; }
.bhv-c-bubble { position: relative; max-width: 78%; background: #fff; color: #0B2545; border-radius: 1.1em; padding: .8em 1.2em; font-size: 1.12em; line-height: 1.6;
  box-shadow: 0 .8em 2em rgba(0,0,0,.3); opacity: 0; transform: translateY(.6em) scale(.92); transform-origin: 50% 0;
  transition: opacity calc(.5s / var(--spd)) var(--ease), transform calc(.6s / var(--spd)) var(--ease); }
.bhv-c-bubble::before { content: ""; position: absolute; top: -.55em; left: 50%; margin-left: -.6em; border: .6em solid transparent; border-top: 0; border-bottom-color: #fff; }
.bhv-char.talk .bhv-c-bubble { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bhv-char.on .bhv-c-portrait { animation: none; } }

/* sous-titres */
.bhv-cc {
  position: absolute; z-index: 4; left: 4%; right: 4%; bottom: 3.5cqw; text-align: center; pointer-events: none;
  font-size: clamp(13px, 1.9cqw, 30px); line-height: 1.5;
}
.bhv-cc span {
  display: inline; padding: .18em .55em; border-radius: .35em; background: rgba(3, 12, 26, .78); color: #fff;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.bhv-cc.empty, .bhv.cc-off .bhv-cc, .bhv:not(.is-started) .bhv-cc { display: none; }
.bhv-cc.pop span { animation: bhv-ccin .35s var(--ease); }
@keyframes bhv-ccin { from { opacity: 0; } to { opacity: 1; } }
@container bhv (max-width: 540px) {
  .bhv-cc { position: static; padding: .6em 12px .5em; min-height: 3.6em; background: #06162d; font-size: 14.5px; display: flex; align-items: center; justify-content: center; }
  .bhv-cc span { background: transparent; padding: 0; }
  .bhv-cc.empty { display: flex; }
  .bhv-cc.empty span { visibility: hidden; }
  .bhv-scene, .bhv.cc-off .bhv-scene { padding: 8cqh 6cqw 7cqh; }
  .bhv-scene.is-fill { padding-top: 9cqh; padding-bottom: 4cqh; }
  .bhv-v { font-size: max(12.5px, calc(var(--fit) * 3.9cqw)); }
  .bhv-hud { font-size: 10.5px; padding: 2.4cqh 3.5cqw; }
}

/* note « pas de voix » */
.bhv-note {
  position: absolute; z-index: 5; top: 2cqh; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .45em;
  padding: .3em .8em; border-radius: 99px; background: rgba(3, 12, 26, .65); color: #c6d4ea; font-size: max(10px, 1.2cqw); white-space: nowrap;
  animation: bhv-fade 4s ease forwards;
}
.bhv-note svg { width: 1.2em; height: 1.2em; fill: currentColor; stroke: currentColor; }
@keyframes bhv-fade { 0%, 75% { opacity: 1; } 100% { opacity: .45; } }
@container bhv (max-width: 540px) { .bhv-note { font-size: 10px; } .bhv.is-started .bhv-hud-l { visibility: hidden; } }
@container bhv (min-width: 541px) { .bhv-note { top: 9cqh; } }

/* bouton central (pause) */
.bhv-center {
  position: absolute; z-index: 5; left: 50%; top: 50%; width: 15cqh; height: 15cqh; min-width: 56px; min-height: 56px; transform: translate(-50%, -50%);
  border: 0; border-radius: 50%; background: rgba(3, 12, 26, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer;
  display: grid; place-items: center; animation: bhv-pop .3s var(--pop);
}
.bhv-center svg { width: 45%; fill: #fff; margin-inline-start: -8%; }
.bhv-center[hidden] { display: none; }
@keyframes bhv-pop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }

/* affiche */
.bhv-poster {
  position: absolute; inset: 0; z-index: 6; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqh;
  padding: 6cqh 8cqw; text-align: center; overflow: hidden;
  background: radial-gradient(90% 120% at 50% 110%, color-mix(in srgb, var(--bh-accent) 45%, #0B2545) 0%, transparent 60%), linear-gradient(170deg, #0f2f5c 0%, #0B2545 60%, #061428 100%);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.bhv-poster.gone { opacity: 0; transform: scale(1.04); pointer-events: none; }
.bhv-poster[hidden] { display: none; }
.bhv-p-glow { position: absolute; inset: 0; pointer-events: none; background: repeating-radial-gradient(circle at 50% 120%, transparent 0 5cqw, rgba(255, 255, 255, .025) 5cqw 5.3cqw); }
.bhv-p-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.6cqh; }
.bhv-p-kick { display: inline-block; padding: .35em 1em; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #dbe6f6; font-size: max(11px, 1.5cqw); }
.bhv-p-title { margin: 0; font-family: var(--pl-font-h); font-weight: 700; color: #fff; font-size: max(18px, 4.2cqw); line-height: 1.25; max-width: 22em; text-wrap: balance; }
.bhv-p-meta { margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6em; color: var(--pl-dim); font-size: max(11px, 1.45cqw); }
.bhv-p-meta i { width: .3em; height: .3em; border-radius: 50%; background: currentColor; opacity: .6; }
.bhv-p-play {
  position: relative; width: max(64px, 13cqw); height: max(64px, 13cqw); border-radius: 50%; border: 0; cursor: pointer;
  background: var(--bh-accent); display: grid; place-items: center; box-shadow: 0 1cqw 3cqw color-mix(in srgb, var(--bh-accent) 55%, transparent);
  transition: transform .3s var(--pop);
}
.bhv-p-play::before, .bhv-p-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--bh-accent); animation: bhv-ping 2.4s var(--ease) infinite; }
.bhv-p-play::after { animation-delay: 1.2s; }
.bhv-p-play svg { width: 42%; fill: #fff; margin-inline-start: -10%; }
.bhv-poster:hover .bhv-p-play { transform: scale(1.07); }
@keyframes bhv-ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* écran de fin */
.bhv-end {
  position: absolute; inset: 0; z-index: 6; display: flex; padding: 4cqh 6cqw; overflow: auto;
  background: linear-gradient(170deg, rgba(15, 47, 92, .97), rgba(6, 20, 40, .98)); animation: bhv-in .5s var(--ease);
}
.bhv-end[hidden] { display: none; }
@keyframes bhv-in { from { opacity: 0; } }
.bhv-e-in { margin: auto; width: 100%; max-width: 70cqw; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.6cqh; font-size: max(11px, 1.6cqw); }
.bhv-e-badge { width: 4.2em; height: 4.2em; border-radius: 50%; background: var(--pl-green); display: grid; place-items: center; box-shadow: 0 0 0 .5em rgba(43, 196, 138, .2); animation: bhv-pop2 .6s var(--pop); }
.bhv-e-badge svg { width: 55%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bhv-pop2 { from { transform: scale(0); } }
.bhv-end h3 { margin: 0; font-family: var(--pl-font-h); font-size: 1.9em; color: #fff; }
.bhv-e-sub { margin: 0; color: var(--pl-dim); }
.bhv-e-list { list-style: none; margin: .4em 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .45em; }
.bhv-e-list button {
  display: inline-flex; align-items: center; gap: .45em; min-height: 36px; padding: .35em .8em; border-radius: 99px; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .92em; max-width: 26em; color: #e3ecf9;
}
.bhv-e-list button > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: .35em 0; line-height: 1.7; }
.bhv-e-list button:hover { background: rgba(255, 255, 255, .16); }
.bhv-e-list em { font-style: normal; font-weight: 700; color: var(--pl-amber); }
.bhv-e-btns { display: flex; gap: .8em; flex-wrap: wrap; justify-content: center; }
.bhv-e-btns button { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .55em 1.3em; border-radius: 99px; border: 0; cursor: pointer; font-weight: 600; font-size: 1.05em; }
.bhv-e-btns svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.bhv-e-replay { background: var(--bh-accent); color: #fff !important; }
.bhv-e-help { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2) !important; }
@container bhv (max-width: 540px) {
  .bhv-e-in { font-size: 12px; max-width: 100%; gap: 8px; }
  .bhv-e-list { display: none; }
  .bhv-end h3 { font-size: 18px; }
}

/* toast */
.bhv-toast { position: absolute; z-index: 7; left: 50%; top: 12%; transform: translate(-50%, -10px); padding: .5em 1.1em; border-radius: 99px; background: rgba(3, 12, 26, .85); color: #fff; font-size: max(12px, 1.4cqw); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; }
.bhv-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* barre de progression segmentée (RTL : se remplit de droite à gauche) */
.bhv-bar { display: flex; gap: 3px; padding: 10px 14px 4px; background: #06162d; }
.bhv-seg { flex: 1 1 0; min-width: 6px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; display: flex; align-items: center; }
.bhv-seg::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 99px; background: rgba(255, 255, 255, .16); transition: height .2s, margin .2s; }
.bhv-seg i { position: absolute; inset-inline: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 99px; background: var(--bh-accent); transform-origin: right center; transform: scaleX(0); transition: height .2s, margin .2s; }
.bhv-seg.cur i { background: linear-gradient(270deg, var(--bh-accent), var(--pl-acc-light)); }
.bhv-seg:hover::before, .bhv-seg:hover i { height: 9px; margin-top: -4.5px; }
.bhv-seg:focus-visible { outline: 2px solid var(--pl-amber); outline-offset: 1px; border-radius: 4px; }

/* contrôles */
.bhv-ctrls { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 2px 8px 8px; background: #06162d; flex-wrap: wrap; }
.bhv-cg { display: flex; align-items: center; gap: 2px; }
.bhv-b {
  min-width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #e3ecf9; transition: background .2s, color .2s;
}
.bhv-b:hover { background: rgba(255, 255, 255, .1); }
.bhv-b:disabled { opacity: .35; cursor: default; background: transparent; }
.bhv-b svg { width: 24px; height: 24px; fill: currentColor; }
.bhv-play svg { width: 28px; height: 28px; }
.bhv-speed span { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 2.6em; }
.bhv-ccb[aria-pressed="true"] { color: var(--pl-amber); }
.bhv-ccb[aria-pressed="true"]::after { content: ""; position: absolute; }
.bhv-help { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 0 12px; font-size: 14px; font-weight: 600; }
.bhv-help svg { width: 20px; height: 20px; fill: currentColor; }
.bhv-time { font-size: 13px; color: var(--pl-dim); font-variant-numeric: tabular-nums; padding: 0 8px; }
@container bhv (max-width: 420px) {
  .bhv-time { display: none; }
  .bhv-help span { display: none; }
  .bhv-b { min-width: 42px; padding: 0 6px; }
  .bhv-ctrls { padding: 0 4px 6px; }
}

/* plein écran */
.bhv:fullscreen, .bhv.pseudo-fs { border-radius: 0; display: flex; flex-direction: column; justify-content: center; background: #000; width: 100%; height: 100%; }
.bhv:-webkit-full-screen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; background: #000; width: 100%; height: 100%; }
.bhv.pseudo-fs { position: fixed; inset: 0; z-index: 9999; }
.bhv:fullscreen .bhv-screen, .bhv.pseudo-fs .bhv-screen { width: min(100%, calc((100vh - 110px) * 16 / 9)); margin: 0 auto; }
.bhv:fullscreen .bhv-bar, .bhv:fullscreen .bhv-ctrls, .bhv.pseudo-fs .bhv-bar, .bhv.pseudo-fs .bhv-ctrls { width: 100%; }

/* ================================================================ PODCAST */
.bhp {
  --pc-bg: var(--card, #ffffff);
  --pc-ink: var(--ink, #1F2A44);
  --pc-text: var(--text, #3B4A63);
  --pc-muted: var(--muted, #6B7A90);
  --pc-line: var(--line, #C9DCF5);
  --pc-soft: var(--ice, #EEF5FF);
  background: var(--pc-bg); color: var(--pc-text); border: 1px solid var(--pc-line); border-radius: 20px; overflow: hidden;
  container-type: inline-size; container-name: bhp;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bhp { --pc-bg: var(--card, #12233d); --pc-ink: var(--ink, #EAF2FF); --pc-text: var(--text, #C3D1E6); --pc-muted: var(--muted, #8FA2BF); --pc-line: var(--line, #24406a); --pc-soft: var(--ice, #182d4d); }
}
:root[data-theme="dark"] .bhp { --pc-bg: var(--card, #12233d); --pc-ink: var(--ink, #EAF2FF); --pc-text: var(--text, #C3D1E6); --pc-muted: var(--muted, #8FA2BF); --pc-line: var(--line, #24406a); --pc-soft: var(--ice, #182d4d); }
.bhp button { font: inherit; color: inherit; }
.bhp button:focus-visible { outline: 3px solid var(--pl-amber); outline-offset: 2px; }
.bhp-head { display: flex; gap: 18px; padding: 18px; align-items: center; }
.bhp-cover {
  position: relative; flex: none; width: 168px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; color: #fff;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--bh-accent) 35%, transparent);
}
.bhp-cv-bg { position: absolute; inset: 0; background: radial-gradient(80% 80% at 30% 20%, color-mix(in srgb, var(--bh-accent) 80%, #fff) 0%, transparent 60%), linear-gradient(150deg, var(--bh-accent), #0B2545 85%); }
.bhp-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.bhp-rings i { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); opacity: 0; }
.bhp.is-playing .bhp-rings i { animation: bhv-ping 2.4s var(--ease) infinite; }
.bhp.is-playing .bhp-rings i:nth-child(2) { animation-delay: .8s; }
.bhp.is-playing .bhp-rings i:nth-child(3) { animation-delay: 1.6s; }
.bhp-mic { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 34%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; backdrop-filter: blur(4px); }
.bhp-mic svg { width: 60%; fill: #fff; stroke: #fff; }
.bhp-wave { position: absolute; left: 10%; right: 10%; bottom: 18%; height: 18%; display: flex; align-items: center; justify-content: space-between; direction: ltr; }
.bhp-wave i { width: 2.2%; height: calc(var(--h) * 100%); border-radius: 99px; background: rgba(255, 255, 255, .8); transform: scaleY(.25); transition: transform .4s; }
.bhp.is-playing .bhp-wave i { animation: bhp-wave calc(.9s / var(--spd)) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.07s); }
@keyframes bhp-wave { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.bhp-cv-tag { position: absolute; bottom: 6%; left: 0; right: 0; text-align: center; font: 700 9px/1 "IBM Plex Sans", sans-serif; letter-spacing: .18em; opacity: .75; }
.bhp-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bhp-kick { font-size: 13px; font-weight: 600; color: var(--bh-accent); }
.bhp-title { margin: 0; font-family: var(--pl-font-h); font-size: 21px; line-height: 1.3; color: var(--pc-ink); }
.bhp-sub { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pc-muted); }
.bhp-sub i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.bhp-note { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--pc-muted); }
.bhp-note svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; flex: none; }
.bhp-note[hidden] { display: none; }
.bhp-ctrls { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.bhp .bhv-b { color: var(--pc-ink); }
.bhp .bhv-b:hover { background: var(--pc-soft); }
.bhp-play {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--bh-accent); display: grid; place-items: center;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--bh-accent) 40%, transparent); transition: transform .2s var(--pop);
}
.bhp-play:hover { transform: scale(1.06); }
.bhp-play svg { width: 26px; height: 26px; fill: #fff; }
.bhp-speed span { font-weight: 700; font-size: 14px; }
.bhp-prog { display: flex; align-items: center; gap: 10px; }
.bhp-track { flex: 1; height: 6px; border-radius: 99px; background: var(--pc-soft); overflow: hidden; }
.bhp-track i { display: block; height: 100%; background: var(--bh-accent); transform-origin: right center; transform: scaleX(0); border-radius: inherit; }
.bhp-time { font-size: 12.5px; color: var(--pc-muted); font-variant-numeric: tabular-nums; }

.bhp-chat {
  max-height: 380px; overflow-y: auto; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px;
  background: var(--pc-soft); border-top: 1px solid var(--pc-line); scroll-behavior: smooth; overscroll-behavior: contain;
}
.bhp-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; padding: 0; border: 0; background: none; text-align: start; cursor: pointer; opacity: .62; transition: opacity .3s; }
.bhp-msg.past, .bhp-msg.cur { opacity: 1; }
.bhp-msg.prof { align-self: flex-start; }
.bhp-msg.stud { align-self: flex-end; flex-direction: row-reverse; }
.bhp-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--bh-accent); }
.bhp-av svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bhp-msg.stud .bhp-av { background: var(--amber-d, #B9741A); }
.bhp-bub { display: flex; flex-direction: column; gap: 2px; padding: 9px 13px; border-radius: 16px; background: var(--pc-bg); border: 1px solid var(--pc-line); color: var(--pc-text); line-height: 1.6; font-size: 15px; transition: box-shadow .3s, border-color .3s, transform .3s var(--ease); }
.bhp-msg.prof .bhp-bub { border-end-start-radius: 4px; }
.bhp-msg.stud .bhp-bub { border-end-end-radius: 4px; background: color-mix(in srgb, var(--pl-amber) 10%, var(--pc-bg)); }
.bhp-bub b { font-size: 12px; color: var(--pc-muted); font-weight: 600; }
.bhp-msg.cur .bhp-bub { border-color: var(--bh-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bh-accent) 22%, transparent); transform: scale(1.015); color: var(--pc-ink); }
.bhp-msg.cur .bhp-av { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bh-accent) 30%, transparent); }
.bhp.is-playing .bhp-msg.cur .bhp-av { animation: bhp-talk 1s ease-in-out infinite alternate; }
@keyframes bhp-talk { to { transform: scale(1.12); } }
@container bhp (max-width: 520px) {
  .bhp-head { flex-direction: column; align-items: stretch; padding: 14px; gap: 12px; }
  .bhp-cover { width: 100%; aspect-ratio: 2.2; }
  .bhp-mic { top: 42%; width: 20%; }
  .bhp-wave { bottom: 14%; height: 20%; }
  .bhp-ctrls { justify-content: center; }
  .bhp-title { font-size: 18px; }
  .bhp-chat { max-height: 52vh; padding: 12px; }
  .bhp-msg { max-width: 94%; }
  .bhp-bub { font-size: 14.5px; }
}

/* ================================================================ mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .bhv *, .bhv *::before, .bhv *::after, .bhp *, .bhp *::before, .bhp *::after {
    animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; transition-delay: 0s !important;
  }
  .bhv-scene, .bhv-scene.leave, .bhv-scene[data-dir="prev"] { transform: none !important; filter: none !important; }
  .bhv-item, .bhv-w, .bhv-qw, .bhv-col, .bhv-tl-ev, .bhv-fl-n, .bhv-k-val, .bhv-f-tex { transform: none !important; filter: none !important; }
  .bhv-bg i { animation: none !important; }
  .bhv-cycle.all .bhv-cy-orbit, .bhv-cycle.all .bhv-cy-c svg { animation: none !important; }
  .bhp.is-playing .bhp-wave i { animation: none !important; transform: scaleY(.6); }
}

/* l'attribut hidden doit toujours l'emporter (la note « son indisponible » s'affichait à tort) */
.bhv-note[hidden], .bhp-note[hidden] { display: none !important; }
