/* ==========================================================================
   FULL BODY 17 — COMPOSANTS D'INTERFACE
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CARTE HERO & COMPTEUR 17:00 (ACCUEIL)
   -------------------------------------------------------------------------- */

.hero-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-surface-elevated));
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--accent-work-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--accent-work-bg);
  color: var(--accent-work);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-work);
  box-shadow: 0 0 8px var(--accent-work);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.hero-time-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 12px 0 18px 0;
}

.hero-target-time {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .hero-target-time {
  background: linear-gradient(180deg, #0f172a 40%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-time-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.hero-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  border: 1px solid var(--border-subtle);
}

[data-theme="light"] .hero-specs-grid {
  background: rgba(0, 0, 0, 0.03);
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   2. BOUTONS D'ACTION TACTILES
   -------------------------------------------------------------------------- */

.btn-primary {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 25px var(--accent-work-glow);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--accent-work-glow);
  }
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-secondary {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: var(--bg-card-hover);
  }
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   3. LISTE DES EXERCICES (ROUTINE QUOTIDIENNE)
   -------------------------------------------------------------------------- */

.exercise-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.exercise-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .exercise-item-card:hover {
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
    transform: translateX(4px);
  }
}

.exercise-item-card:active {
  transform: scale(0.98);
}

.ex-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-work);
}

.ex-info {
  flex: 1;
}

.ex-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.ex-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ex-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ex-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   4. ÉCRAN D'ENTRAÎNEMENT ACTIF (WORKOUT LIVE PLAYER)
   -------------------------------------------------------------------------- */

.workout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-app);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top) + 12px) 20px calc(var(--safe-bottom) + 20px) 20px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.workout-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.workout-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.workout-progress-pills {
  display: flex;
  gap: 8px;
}

.workout-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

/* Chronomètre Circulaire SVG */
.timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 10px auto;
  width: 260px;
  height: 260px;
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-bg-circle {
  fill: none;
  stroke: var(--bg-surface-elevated);
  stroke-width: 12;
}

.timer-progress-circle {
  fill: none;
  stroke: var(--accent-work);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 691.15; /* 2 * PI * 110 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.15s linear, stroke 0.4s ease;
  filter: drop-shadow(0 0 12px var(--accent-work-glow));
}

.timer-overlay-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-status-badge {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-work);
  margin-bottom: 4px;
}

.timer-digits {
  font-size: 4.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.timer-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Mode Repos & Préparation du Timer */
.state-rest .timer-progress-circle {
  stroke: var(--accent-rest);
  filter: drop-shadow(0 0 12px var(--accent-rest-glow));
}
.state-rest .timer-status-badge {
  color: var(--accent-rest);
}

.state-prep .timer-progress-circle {
  stroke: var(--accent-prep);
  filter: drop-shadow(0 0 12px var(--accent-prep-glow));
}
.state-prep .timer-status-badge {
  color: var(--accent-prep);
}

/* Zone d'illustration et d'information d'exercice */
.live-exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.live-exercise-name {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.live-exercise-cue {
  font-size: 0.88rem;
  color: var(--accent-work);
  font-weight: 600;
  background: var(--accent-work-bg);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.live-illustration-box {
  width: 100%;
  max-width: 350px;
  height: 225px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 10px 0;
  background: #020617;
  border: 1px solid var(--border-medium);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.exercise-media-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #030712;
}

.exercise-media-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exercise-video-reel {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #020617;
  transition: opacity 0.3s ease;
}

.exercise-video-reel.video-fallback {
  display: none !important;
}

.exercise-fallback-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.motion-wave-lines {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 12px;
}

.motion-wave-bar {
  width: 3px;
  height: 100%;
  background: var(--accent-work);
  border-radius: 2px;
  animation: waveBar 1.2s ease-in-out infinite alternate;
}
.motion-wave-bar:nth-child(2) { animation-delay: 0.2s; }
.motion-wave-bar:nth-child(3) { animation-delay: 0.4s; }
.motion-wave-bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes waveBar {
  0% { height: 20%; opacity: 0.4; }
  100% { height: 100%; opacity: 1; }
}

.ex-thumb-container {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-medium);
}

.ex-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .exercise-item-card:hover .ex-thumb-img {
    transform: scale(1.12);
  }
}

.ex-thumb-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(4px);
  color: var(--accent-work);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
}

.live-next-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

/* Contrôles d'entraînement */
.workout-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 10px;
}

.ctrl-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .ctrl-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
  }
}

.ctrl-btn:active {
  transform: scale(0.92);
}

.ctrl-btn-primary {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent-work), #059669);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 25px var(--accent-work-glow);
}

.ctrl-btn-primary.paused {
  background: linear-gradient(135deg, var(--accent-prep), #d97706);
  box-shadow: 0 8px 25px var(--accent-prep-glow);
}

/* --------------------------------------------------------------------------
   5. ÉCRAN DE CÉLÉBRATION (SÉANCE TERMINÉE)
   -------------------------------------------------------------------------- */

.celebration-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.celebration-modal.active {
  opacity: 1;
  pointer-events: auto;
}

#confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 201;
}

.celebration-card {
  position: relative;
  z-index: 202;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.trophy-icon-box {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  color: var(--accent-gold);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
}

.celebration-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.celebration-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 20px;
}

.celebration-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   6. TABLEAU DE BORD & STATISTIQUES (DASHBOARD)
   -------------------------------------------------------------------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 8px;
  line-height: 1.1;
}

.stat-unit {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-left: 2px;
}

/* Calendrier Heatmap Mensuel */
.calendar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.month-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.cal-nav-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.cal-day.empty {
  background: transparent;
  cursor: default;
}

.cal-day.today {
  border-color: var(--accent-work);
  color: var(--text-primary);
}

.cal-day.completed {
  background: linear-gradient(135deg, var(--accent-work), #059669);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--accent-work-glow);
}

.cal-day.completed::after {
  content: '✓';
  position: absolute;
  bottom: 2px;
  font-size: 0.6rem;
  font-weight: 900;
}

/* Programmation 8 Semaines */
.progression-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
}

.plan-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.plan-step-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border-left: 4px solid var(--border-subtle);
}

.plan-step-item.active {
  border-left-color: var(--accent-work);
  background: var(--accent-work-bg);
}

.plan-step-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-step-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   7. BADGES & MOTIVATION
   -------------------------------------------------------------------------- */

.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-fast);
  position: relative;
  opacity: 0.55;
  filter: grayscale(0.7);
}

.badge-card.unlocked {
  opacity: 1;
  filter: grayscale(0);
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(251, 191, 36, 0.08) 100%);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.15);
}

.badge-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.badge-card.unlocked .badge-icon-box {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 80%);
  border: 1px solid var(--accent-gold);
}

.badge-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.badge-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   8. MODALES & FEUILLES DE DÉTAIL (SHEETS)
   -------------------------------------------------------------------------- */

.modal-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-medium);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  padding: 24px 20px calc(var(--safe-bottom) + 20px) 20px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-sheet-backdrop.active .modal-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 0 auto 18px auto;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   9. FORMULAIRES & RÉGLAGES (SETTINGS)
   -------------------------------------------------------------------------- */

.settings-group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px 16px;
  margin-bottom: 20px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-info {
  display: flex;
  flex-direction: column;
}

.setting-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.setting-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Switch Toggle Tactile */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

input:checked + .slider {
  background-color: var(--accent-work);
  border-color: var(--accent-work);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Input select / time stylisé */
.styled-input {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  outline: none;
}

.styled-input:focus {
  border-color: var(--accent-work);
}

/* --------------------------------------------------------------------------
   10. ANIMATIONS VECTORIELLES DES EXERCICES (SVG)
   -------------------------------------------------------------------------- */

.ex-svg {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* Step-up : Mouvement vertical rythmé */
.anim-stepup {
  animation: animStepUp 2.2s ease-in-out infinite;
  transform-origin: 95px 120px;
}

@keyframes animStepUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Squat : Flexion et extension contrôlée */
.anim-squat {
  animation: animSquat 2.8s ease-in-out infinite;
  transform-origin: 85px 120px;
}

@keyframes animSquat {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(12px) scaleY(0.9); }
}

/* Pompes : Poussée pectoraux / triceps */
.anim-pushup {
  animation: animPushup 2.4s ease-in-out infinite;
  transform-origin: 58px 116px;
}

@keyframes animPushup {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px) rotate(-4deg); }
}

/* Pont Fessier : Montée de bassin */
.anim-bridge {
  animation: animBridge 2.6s ease-in-out infinite;
  transform-origin: 56px 118px;
}

@keyframes animBridge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* Gainage Planche Classique : Maintien et gainage abdominal actif */
.anim-plank {
  animation: animPlank 3.0s ease-in-out infinite;
  transform-origin: 98px 90px;
}

@keyframes animPlank {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-3px); opacity: 0.95; }
}

/* Extension de Hanche : Balancier arrière contrôlé */
.anim-hipext {
  animation: animHipExt 2.4s ease-in-out infinite;
  transform-origin: 104px 76px;
}

@keyframes animHipExt {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-8deg); }
}

/* Étirements Dynamiques : Respiration et ouverture */
.anim-stretch {
  animation: animStretch 3.2s ease-in-out infinite;
  transform-origin: 100px 76px;
}

@keyframes animStretch {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06) translateY(-4px); }
}

