/* ============================================================
   9min — style.css
   Thème : sombre/minimaliste, Syne + DM Mono
   ============================================================ */

:root {
  --bg:        #0f0f0f;
  --bg2:       #1a1a1a;
  --bg3:       #242424;
  --border:    #2e2e2e;
  --text:      #f0ede6;
  --text2:     #8a8780;
  --text3:     #4a4845;
  --accent:    #e8f55a;   /* jaune vif — l'unique couleur */
  --accent-d:  #b8c43a;
  --danger:    #ff5c5c;
  --radius:    16px;
  --radius-sm: 10px;
  --font-head: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── SCREENS ─────────────────────────────────────────────── */
.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 16px) 24px env(safe-area-inset-bottom, 16px);
  opacity: 0; pointer-events: none;
  transform: translateY(18px);
  transition: opacity .35s ease, transform .35s ease;
  overflow-y: auto;
}
.screen.active {
  opacity: 1; pointer-events: all; transform: none;
}

/* ── ACCUEIL ─────────────────────────────────────────────── */
.home-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; margin-bottom: 0;
}
.logo {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800; letter-spacing: -.04em;
  color: var(--text);
}
.logo span { color: var(--accent); }

.streak-badge {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 99px; padding: 6px 14px;
  font-family: var(--font-mono); font-size: .85rem;
  color: var(--text2);
}

.home-center {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; gap: 28px;
  padding: 24px 0;
}

.home-greeting {
  font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em;
  line-height: 1;
}
.home-sub {
  font-size: 1.1rem; color: var(--text2); font-weight: 400;
  margin-top: -18px;
}

.duration-picker { display: flex; flex-direction: column; gap: 12px; }
.picker-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text3);
}
.duration-options {
  display: flex; gap: 10px;
}
.dur-btn {
  flex: 1; padding: 14px 8px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  color: var(--text2); transition: all .2s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.dur-btn span { font-size: .65rem; font-weight: 400; color: var(--text3); }
.dur-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: #0f0f0f;
}
.dur-btn.active span { color: #3a3a00; }
.dur-btn:hover:not(.active) { border-color: var(--text3); color: var(--text); }

.level-display {
  display: flex; align-items: center; gap: 12px;
}
.level-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text3);
}
.level-value {
  font-family: var(--font-mono); font-size: .9rem;
  color: var(--accent); background: rgba(232,245,90,.1);
  padding: 4px 12px; border-radius: 99px;
}

.btn-start {
  width: 100%; padding: 20px;
  background: var(--accent); border: none; border-radius: var(--radius);
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800;
  color: #0f0f0f; cursor: pointer; letter-spacing: -.02em;
  display: flex; justify-content: space-between; align-items: center;
  transition: transform .15s, background .2s;
}
.btn-start:active { transform: scale(.97); }
.btn-start-arrow { font-size: 1.3rem; }

.home-stats {
  display: flex; gap: 12px; margin-top: 16px;
}
.stat-pill {
  flex: 1; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stat-num {
  font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500;
  color: var(--text);
}
.stat-lbl { font-size: .75rem; color: var(--text3); }

.btn-ghost {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-size: .85rem; color: var(--text3);
  margin-top: 12px; text-align: center; padding: 8px;
  transition: color .2s;
}
.btn-ghost:hover { color: var(--text2); }

/* ── SÉANCE ──────────────────────────────────────────────── */
.session-topbar {
  display: flex; align-items: center; gap: 12px;
  padding-top: 8px; margin-bottom: 16px;
}
.btn-icon {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 50%; width: 40px; height: 40px;
  font-size: 1rem; color: var(--text2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
}
.btn-icon:hover { border-color: var(--text2); color: var(--text); }

.session-progress-wrap {
  flex: 1; height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden;
}
.session-progress-bar {
  height: 100%; background: var(--accent);
  width: 0%; transition: width .5s linear; border-radius: 2px;
}
.session-time-total {
  font-family: var(--font-mono); font-size: .85rem; color: var(--text3);
  flex-shrink: 0;
}

.session-main {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}

.block-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text3);
}

.exercise-card {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  text-align: center;
}
.exercise-number {
  font-family: var(--font-mono); font-size: .8rem; color: var(--text3);
  margin-bottom: 8px;
}
.exercise-name {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em;
  line-height: 1.1; margin-bottom: 8px;
}
.exercise-detail {
  font-size: .9rem; color: var(--text2);
}

/* Timer ring */
.timer-ring-wrap {
  position: relative; width: 200px; height: 200px;
}
.timer-ring {
  width: 200px; height: 200px; transform: rotate(-90deg);
}
.ring-bg {
  fill: none; stroke: var(--bg3); stroke-width: 6;
}
.ring-progress {
  fill: none; stroke: var(--accent); stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset .5s linear;
}
.timer-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.timer-digits {
  font-family: var(--font-mono); font-size: 3rem; font-weight: 500;
  letter-spacing: -.04em; color: var(--text);
}
.timer-sublabel {
  font-size: .7rem; color: var(--text3); font-family: var(--font-mono);
}

.next-preview {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .85rem;
}
.next-label { color: var(--text3); font-family: var(--font-mono); }
.next-name { color: var(--text2); }

.session-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-bottom: 8px;
}
.btn-skip {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 20px; font-family: var(--font-head); font-size: .85rem;
  color: var(--text3); cursor: pointer; transition: all .2s;
}
.btn-skip:hover { border-color: var(--text3); color: var(--text2); }

.btn-pause {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg2); border: 2px solid var(--border);
  font-size: 1.4rem; color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.btn-pause:hover { border-color: var(--accent); }
.btn-pause.playing { border-color: var(--accent); }

/* Pause overlay */
.pause-overlay {
  position: absolute; inset: 0;
  background: rgba(15,15,15,.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  z-index: 10;
}
.pause-overlay.visible { opacity: 1; pointer-events: all; }
.pause-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  width: calc(100% - 48px); max-width: 340px;
}
.pause-title {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em;
}
.btn-resume {
  width: 100%; padding: 16px;
  background: var(--accent); border: none; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: #0f0f0f; cursor: pointer;
}
.btn-quit-confirm {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-size: .85rem; color: var(--text3);
  padding: 8px;
}

/* ── BILAN ───────────────────────────────────────────────── */
.done-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
  padding: 24px 0;
}
.done-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent); color: #0f0f0f;
  font-size: 2rem; display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.done-title {
  font-size: 2rem; font-weight: 800; letter-spacing: -.04em;
}
.done-stats {
  display: flex; gap: 24px;
}
.done-stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.done-stat-num {
  font-family: var(--font-mono); font-size: 2rem; font-weight: 500; color: var(--accent);
}
.done-stat-lbl { font-size: .8rem; color: var(--text3); }

.rating-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rating-label { font-size: .85rem; color: var(--text2); }
.stars { display: flex; gap: 8px; }
.star {
  background: none; border: none; font-size: 2rem; cursor: pointer;
  color: var(--bg3); transition: color .15s, transform .15s;
}
.star.lit { color: var(--accent); }
.star:hover { transform: scale(1.2); }

.level-up-banner {
  width: 100%; background: rgba(232,245,90,.08);
  border: 1px solid rgba(232,245,90,.3); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: .95rem; text-align: center; color: var(--text2);
}
.btn-level-up {
  background: var(--accent); border: none; border-radius: var(--radius-sm);
  padding: 12px 24px; font-family: var(--font-head); font-size: .9rem; font-weight: 700;
  color: #0f0f0f; cursor: pointer;
}
.btn-ghost-sm {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-size: .8rem; color: var(--text3); padding: 4px;
}

/* ── DASHBOARD ───────────────────────────────────────────── */
.dash-header {
  display: flex; align-items: center; gap: 16px;
  padding-top: 8px; margin-bottom: 24px;
}
.dash-title {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em;
}
.dash-body { flex: 1; overflow-y: auto; padding-bottom: 32px; }

.dash-summary {
  display: flex; gap: 12px; margin-bottom: 28px;
}
.dash-stat {
  flex: 1; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.dash-num {
  font-family: var(--font-mono); font-size: 1.8rem; font-weight: 500; color: var(--accent);
}
.dash-lbl { font-size: .7rem; color: var(--text3); text-align: center; }

/* Calendrier */
.calendar-wrap {
  margin-bottom: 28px;
}
.cal-month {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 10px;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal-day-label {
  font-family: var(--font-mono); font-size: .6rem; color: var(--text3);
  text-align: center; padding: 4px 0;
}
.cal-day {
  aspect-ratio: 1; border-radius: 6px; background: var(--bg2);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .7rem; color: var(--text3);
}
.cal-day.done {
  background: rgba(232,245,90,.15); border-color: rgba(232,245,90,.4); color: var(--accent);
}
.cal-day.today {
  border-color: var(--text2); color: var(--text);
}
.cal-day.empty { background: transparent; border-color: transparent; }

/* Historique */
.history-title {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 12px;
}
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.h-date { font-family: var(--font-mono); font-size: .85rem; color: var(--text2); }
.h-meta { font-size: .8rem; color: var(--text3); }
.h-rating { color: var(--accent); font-size: .85rem; }
.empty-state { font-size: .9rem; color: var(--text3); text-align: center; padding: 32px 0; }

/* ── SPRINT 2 ADDITIONS ──────────────────────────────────── */

/* Countdown overlay 3-2-1 */
.overlay-countdown {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.overlay-countdown.visible { opacity: 1; pointer-events: all; }

.countdown-number {
  font-family: var(--font-head);
  font-size: 8rem; font-weight: 800; letter-spacing: -.06em;
  color: var(--accent); line-height: 1;
  animation: none;
}
.countdown-number.pop {
  animation: countpop .4s cubic-bezier(.17,.67,.35,1.4);
}
@keyframes countpop {
  0%   { transform: scale(.6); opacity: .4; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
.countdown-label {
  font-size: 1rem; color: var(--text2); letter-spacing: .06em;
  text-transform: uppercase; font-weight: 600;
}

/* Indicateur de bloc (points) */
.block-indicator {
  display: flex; align-items: center; gap: 8px;
}
.block-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}
.block-dot.active {
  background: var(--accent); border-color: var(--accent);
}
.block-dot.done {
  background: var(--accent-d); border-color: var(--accent-d);
  opacity: .5;
}
.block-label-txt {
  font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text3); margin-left: 4px;
}

/* Animation flip de la carte exercice */
.exercise-card {
  transition: opacity .2s ease, transform .2s ease;
}
.exercise-card.flipping {
  opacity: 0; transform: translateY(-8px) scale(.97);
}

/* Flash de transition */
.transition-flash {
  position: absolute; inset: 0; z-index: 5;
  background: var(--accent); opacity: 0; pointer-events: none;
  border-radius: 0;
}
.transition-flash.flash {
  animation: doflash .35s ease-out forwards;
}
@keyframes doflash {
  0%   { opacity: .18; }
  100% { opacity: 0; }
}

/* Graphique barres */
.chart-section { margin-bottom: 28px; }

.bar-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 80px; padding: 0 2px;
}
.bar-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: 5px;
}
.bar-fill {
  width: 100%; border-radius: 4px 4px 0 0;
  background: var(--bg3); min-height: 4px;
  transition: height .5s cubic-bezier(.22,1,.36,1);
  position: relative;
}
.bar-fill.has-data { background: var(--accent); opacity: .7; }
.bar-fill.current-week { background: var(--accent); opacity: 1; }
.bar-week-lbl {
  font-family: var(--font-mono); font-size: .6rem; color: var(--text3);
  white-space: nowrap;
}
.bar-count {
  font-family: var(--font-mono); font-size: .65rem; color: var(--accent);
  margin-bottom: 3px; min-height: 12px;
}

/* Stat streak dans bilan */
#done-streak { color: var(--accent); }

/* ── SPRINT 3 : pictos, aperçu, rotation ─────────────────── */

/* Bouton aperçu */
.home-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-preview {
  width: 100%; padding: 14px;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-head); font-size: .95rem; font-weight: 600;
  color: var(--text2); transition: all .2s; text-align: center;
}
.btn-preview:hover { border-color: var(--accent); color: var(--accent); }

/* Modal générique */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15,15,15,.88); backdrop-filter: blur(10px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  padding: env(safe-area-inset-bottom, 0);
}
.modal-overlay.visible { opacity: 1; pointer-events: all; }

.modal-card {
  width: 100%; max-width: 480px; max-height: 85vh;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px 20px env(safe-area-inset-bottom, 16px);
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  transform: translateY(24px);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.modal-overlay.visible .modal-card { transform: translateY(0); }

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em;
}
.modal-sub { font-size: .8rem; color: var(--text3); margin-top: -8px; }

/* Liste aperçu */
.preview-list {
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; flex: 1;
}
.preview-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  cursor: pointer; transition: border-color .2s;
  position: relative;
}
.preview-item:hover { border-color: var(--text3); }
.preview-item.swap-target { border-color: var(--accent); }

.preview-picto-wrap {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.preview-picto-wrap svg { width: 44px; height: 44px; overflow: visible; }

.preview-item-info { flex: 1; }
.preview-item-name { font-size: .95rem; font-weight: 700; }
.preview-item-detail { font-size: .75rem; color: var(--text3); margin-top: 2px; }
.preview-item-block {
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text3); margin-top: 3px;
}

.preview-swap-btn {
  background: none; border: none; cursor: pointer;
  font-size: .75rem; color: var(--text3); padding: 4px 8px;
  border: 1px solid var(--border); border-radius: 6px;
  transition: all .2s; white-space: nowrap;
}
.preview-swap-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Modal swap */
.swap-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.swap-option {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  cursor: pointer; transition: all .2s;
}
.swap-option:hover { border-color: var(--accent); }
.swap-option.current { border-color: var(--text3); opacity: .5; cursor: default; }
.swap-option-picto { width: 36px; height: 36px; flex-shrink: 0; }
.swap-option-picto svg { width: 36px; height: 36px; overflow: visible; }
.swap-option-name { font-size: .9rem; font-weight: 600; }
.swap-option-detail { font-size: .72rem; color: var(--text3); }

.modal-actions {
  display: flex; flex-direction: column; gap: 10px; padding-top: 4px;
}
.btn-shuffle {
  padding: 12px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-head); font-size: .9rem; font-weight: 600;
  color: var(--text2); transition: all .2s; text-align: center;
}
.btn-shuffle:hover { border-color: var(--accent); color: var(--accent); }

/* Picto dans la carte exercice */
.exercise-card-top {
  display: flex; align-items: center; gap: 16px;
}
.exercise-picto {
  width: 80px; height: 80px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.exercise-picto svg { width: 80px; height: 80px; overflow: visible; }
.exercise-info { flex: 1; }

/* Picto animation CSS */
@keyframes picto-high {
  0%, 38%  { opacity: 1; }
  48%, 90% { opacity: 0; }
  100%     { opacity: 1; }
}
@keyframes picto-low {
  0%, 38%  { opacity: 0; }
  48%, 90% { opacity: 1; }
  100%     { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .picto-animated .pos-high { animation: picto-high 2.2s ease-in-out infinite; }
  .picto-animated .pos-low  { animation: picto-low  2.2s ease-in-out infinite; }
}
.picto-static .pos-high { opacity: 1; }
.picto-static .pos-low  { opacity: 0; }

/* Picto "ensuite" miniature */
.next-preview { gap: 8px; }
.next-picto {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.next-picto svg { width: 28px; height: 28px; overflow: visible; }

/* ── Bandeau "Prêt ?" avant chaque exercice ─────────────── */
.ready-banner {
  position: absolute; bottom: 100px; left: 24px; right: 24px;
  background: var(--bg2); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 4;
}
.ready-banner.visible { opacity: 1; transform: translateY(0); }
.ready-text {
  font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  color: var(--accent); letter-spacing: .08em; text-transform: uppercase;
}
.ready-bar-wrap {
  width: 100%; height: 3px; background: var(--bg3);
  border-radius: 2px; overflow: hidden;
}
.ready-bar {
  height: 100%; background: var(--accent);
  border-radius: 2px; width: 100%;
  animation: ready-drain var(--dur, 5s) linear forwards;
}
@keyframes ready-drain {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ── SPRINT 4 : splash, bouton info, modal info ─────────── */

/* ── SPLASH ──────────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0;
  opacity: 1; pointer-events: all;
  transition: opacity .5s ease;
  padding: env(safe-area-inset-top,16px) 24px env(safe-area-inset-bottom,16px);
}
.splash.hiding { opacity: 0; pointer-events: none; }
.splash.hidden { display: none; }

/* Silhouette animée */
.splash-figure {
  margin-bottom: 32px;
  animation: splash-rise .6s cubic-bezier(.22,1,.36,1) both;
}
.splash-picto { width: 100px; height: 130px; overflow: visible; }

/* Poings qui pulsent */
@media (prefers-reduced-motion: no-preference) {
  .splash-arm-left  { animation: punchL 1.4s ease-in-out infinite .1s; transform-origin: center bottom; }
  .splash-arm-right { animation: punchR 1.4s ease-in-out infinite .3s; transform-origin: center bottom; }
  .splash-stars     { animation: starblink 1.4s ease-in-out infinite; }
}
@keyframes punchL {
  0%,100% { transform: translateY(0); }
  40%     { transform: translateY(-6px); }
}
@keyframes punchR {
  0%,100% { transform: translateY(0); }
  40%     { transform: translateY(-6px); }
}
@keyframes starblink {
  0%,100% { opacity: .4; }
  40%     { opacity: 1; }
}
@keyframes splash-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo + baseline */
.splash-text {
  text-align: center;
  animation: splash-rise .6s .15s cubic-bezier(.22,1,.36,1) both;
}
.splash-logo {
  font-family: var(--font-head); font-size: 3.5rem; font-weight: 800;
  letter-spacing: -.05em; line-height: 1; color: var(--text);
}
.splash-logo span { color: var(--accent); }
.splash-baseline {
  font-size: .95rem; color: var(--text2); font-weight: 400;
  margin-top: 6px; letter-spacing: .04em;
}

/* Tagline rotative en bas */
.splash-tagline {
  position: absolute; bottom: 60px;
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--text3); letter-spacing: .08em;
  text-align: center;
  animation: splash-rise .6s .3s cubic-bezier(.22,1,.36,1) both;
  transition: opacity .4s ease;
}

/* ── BOUTON INFO ─────────────────────────────────────────── */
.btn-info {
  position: fixed; bottom: 24px; right: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .9rem; font-weight: 500;
  color: var(--text3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; z-index: 10;
  font-style: italic;
}
.btn-info:hover { border-color: var(--text2); color: var(--text2); }

/* ── MODAL INFO ──────────────────────────────────────────── */
.modal-card-tall { max-height: 92vh; }

.info-body {
  overflow-y: auto; flex: 1;
  display: flex; flex-direction: column; gap: 0;
  padding-right: 2px;
}
.info-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.info-section:last-of-type { border-bottom: none; }

.info-section-title {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 10px;
}
.info-text { display: flex; flex-direction: column; gap: 8px; }
.info-text p { font-size: .85rem; color: var(--text2); line-height: 1.6; }
.info-text strong { color: var(--text); font-weight: 600; }
.info-text em { color: var(--accent); font-style: normal; }
.info-list {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
  padding-left: 0;
}
.info-list li {
  font-size: .82rem; color: var(--text2); line-height: 1.55;
  padding-left: 14px; position: relative;
}
.info-list li::before {
  content: '—'; position: absolute; left: 0; color: var(--text3);
}

/* Paramètre : délai */
.param-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.param-label { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.param-name { font-size: .9rem; color: var(--text); font-weight: 500; }
.param-desc { font-size: .72rem; color: var(--text3); line-height: 1.4; }
.param-control {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.param-btn {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.param-btn:hover { border-color: var(--accent); color: var(--accent); }
.param-value {
  font-family: var(--font-mono); font-size: 1.1rem;
  color: var(--accent); min-width: 20px; text-align: center;
}
.param-unit { font-size: .75rem; color: var(--text3); }

/* Version */
.info-version {
  font-family: var(--font-mono); font-size: .7rem; color: var(--text3);
  text-align: center; padding: 20px 0 8px;
  letter-spacing: .06em;
}
