/* Minuteur de présentation */
.sp { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.6vh, 18px); text-align: center; width: 100%; }
.sp-show { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.6vh, 16px); width: min(100%, calc(640px * var(--cs, 1))); }
.sp-time { margin: 0; font-family: var(--f-display); font-size: calc(clamp(88px, 17vh, 168px) * var(--cs, 1)); line-height: 1; font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
/* Le « + » du dépassement se place à gauche sans pousser les chiffres. */
.sp-sign { display: inline-block; width: 0; margin-left: -.5em; text-align: right; overflow: visible; direction: rtl; }
.sp-bar { position: relative; width: 100%; height: calc(14px * var(--cs, 1)); border-radius: 999px; background: var(--frame); overflow: visible; }
.sp-fill { position: absolute; inset: 0; border-radius: 999px; background: var(--white); transform-origin: left center; transform: scaleX(0); }
.sp-mark { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--white); opacity: .85; }
.sp-phase { margin: 0; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: calc(40px * var(--cs, 1)); }
.sp-dots { display: inline-flex; gap: 8px; }
.sp-dots i { width: calc(16px * var(--cs, 1)); height: calc(16px * var(--cs, 1)); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--white); transition: background-color .3s var(--ease); }
.sp[data-phase="1"] .sp-dots i:nth-child(1), .sp[data-phase="2"] .sp-dots i:nth-child(-n+2), .sp[data-phase="3"] .sp-dots i { background: var(--white); }
.sp-word { display: inline-block; overflow: hidden; font-family: var(--f-display); font-size: calc(clamp(24px, 3.6vh, 36px) * var(--cs, 1)); line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; }
.sp-word > span { display: inline-block; }
.sp-word > span.sp-in { animation: spIn .5s var(--ease); }
@keyframes spIn { from { transform: translateY(100%); } to { transform: none; } }
/* Rouge atteint : les pastilles battent trois fois (un léger agrandissement, pas un fondu). */
.sp.sp-over .sp-dots i { animation: spBeat 1s var(--ease) 3; }
@keyframes spBeat { 50% { transform: scale(1.35); } }
.sp-sentence { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.55; text-wrap: balance; max-width: 900px; }
.sp-sentence .sp-w { width: 3.6em; }
.sp[data-state="run"] .sp-sentence .iw { pointer-events: none; opacity: .5; }
.sp-actions { margin-top: 0; flex-wrap: nowrap; }
.sp-actions .btn-wide { white-space: nowrap; }
.sp-tbar .chip-btn { padding: 0 16px; }
@media (max-width: 720px) {
  .sp-time { font-size: calc(clamp(72px, 23vw, 120px) * var(--cs, 1)); }
  .sp-show { width: min(100%, 340px); }
  .sp-sentence { font-size: 19px; }
  .sp-sentence .sp-w { width: 3.3em; }
  .sp-actions .btn-wide { flex: 1 1 0; padding: 0 12px; }
}
@media (max-width: 520px) { .sp-tbar .chip-btn { padding: 0 14px; } .sp-tbar .sp-opt, .sp-tbar .sp-sep, .sp-tbar .sp-mode { display: none; } }
@media (max-width: 720px) and (max-height: 760px) { .sp, .sp-show { gap: 6px; } .sp-time { font-size: calc(clamp(64px, 20vw, 100px) * var(--cs, 1)); } }
/* Plein écran : face à l'orateur, le temps prend la place ; la phrase s'efface. */
.hero.is-fs .sp-sentence { display: none; }
.hero.is-fs .sp-show.zoomable > * { zoom: 1; }
.hero.is-fs .sp-show { width: min(92vw, calc(1100px * var(--cs, 1))); }
.hero.is-fs .sp-time { font-size: calc(clamp(120px, 34vh, 380px) * var(--cs, 1)); }
.hero.is-fs .sp-word { font-size: calc(clamp(28px, 6vh, 64px) * var(--cs, 1)); }
.hero.is-fs .sp-dots i { width: calc(26px * var(--cs, 1)); height: calc(26px * var(--cs, 1)); }
@media (prefers-reduced-motion: reduce) { .sp.sp-over .sp-dots i, .sp-word > span.sp-in { animation: none; } }
