/* Métronome */
.mn { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2vh, 22px); text-align: center; }
.mn-show { --mnf: calc(clamp(64px, min(11vw, 12.5vh), 150px) * var(--cs, 1)); display: flex; flex-direction: column; align-items: center; gap: calc(var(--mnf) * .1); }
/* Points de temps : le premier (accentué) plus gros ; celui qui sonne s'allume en blanc */
.mn-dots { display: flex; align-items: center; justify-content: center; gap: calc(var(--mnf) * .2); min-height: calc(var(--mnf) * .32); margin-bottom: calc(var(--mnf) * .2); }
.mn-dot { flex: none; width: calc(var(--mnf) * .17); height: calc(var(--mnf) * .17); border-radius: 50%; background: var(--frame); }
.mn-dot[data-lv="1"] { width: calc(var(--mnf) * .22); height: calc(var(--mnf) * .22); }
.mn-dot[data-lv="2"] { width: calc(var(--mnf) * .3); height: calc(var(--mnf) * .3); }
.mn-dot.on { background: var(--white); animation: mn-pop .18s var(--ease); }
@keyframes mn-pop { from { transform: scale(1.35); } to { transform: scale(1); } }
/* Le tempo : une grande roue (comme le minuteur), − et + de chaque côté */
.mn-main { display: flex; align-items: center; justify-content: center; gap: calc(var(--mnf) * .22); }
.mn-pk { position: relative; display: flex; align-items: center; font-family: var(--f-display); font-weight: 400; font-size: var(--mnf); line-height: 1; }
.mn-wheel.wheel { width: 1.9em; height: 2.4em; font-variant-numeric: tabular-nums; }
.mn-unit { position: absolute; left: 100%; top: 50%; margin: -.1em 0 0 .12em; font-family: var(--f-body); font-weight: 700; font-size: .2em; letter-spacing: .02em; opacity: .9; }
.mn-step { flex: none; width: calc(var(--mnf) * .62); height: calc(var(--mnf) * .62); min-width: 48px; min-height: 48px; max-width: 72px; max-height: 72px; padding: 0; border: 2px solid color-mix(in srgb, var(--white) 55%, transparent); border-radius: 50%; background: transparent; color: var(--white); display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s, border-color .15s, transform .12s; touch-action: manipulation; }
.mn-step:hover { background: color-mix(in srgb, var(--white) 14%, transparent); border-color: var(--white); }
.mn-step:active { transform: scale(.94); }
.mn-step svg { width: 40%; height: 40%; }
.mn-main .mn-step:last-child { margin-left: calc(var(--mnf) * .5); }
.mn-name { margin: 0; font-weight: 700; font-size: calc(clamp(15px, 1.5vw, 20px) * var(--cs, 1)); letter-spacing: .16em; text-transform: uppercase; opacity: .92; }
.mn-sentence { line-height: 1.6; }
.mn-tap.bump { animation: bump .28s var(--ease); }
.mn-actions .btn-primary[aria-pressed="true"] { box-shadow: 0 0 0 5px color-mix(in srgb, var(--white) 28%, transparent); }
/* En marche, au repos : la phrase des réglages s'efface comme les barres du site */
.hero .mn-sentence, .hero .mn-step { transition: opacity .6s ease, background-color .15s, border-color .15s, transform .12s; }
.hero.live-idle .mn-sentence, .hero.live-idle .mn-step { opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  .mn-show { --mnf: calc(clamp(58px, min(17vw, 10.5vh), 96px) * var(--cs, 1)); }
  .mn-main .mn-step:last-child { margin-left: calc(var(--mnf) * .45); }
  .mn-actions { width: 100%; flex-wrap: nowrap; }
  .mn-actions .btn-wide { min-width: 0; flex: 1 1 0; padding: 0 14px; }
}
@media (max-width: 520px) { .mn-bar .chip-btn { padding: 0 12px; } }
