/* Coach Réussite v2 — Exercises Styles */

/* Exercise runner */
#exercise-screen {
  max-width: 800px;
  margin: 0 auto;
}

#exercise-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  min-height: 400px;
}

.ex-progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.ex-progress-dot {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: all var(--transition);
}

.ex-progress-dot.active {
  background: var(--accent);
}

.ex-progress-dot.done {
  background: var(--success);
}

.ex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.ex-pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.ex-step-counter {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.ex-question {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: var(--text);
  line-height: 1.6;
}

.ex-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ex-option {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ex-option:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.ex-option.selected {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.ex-option.selected::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

.ex-coach-quote {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.6;
}

.ex-coach-quote strong { color: var(--accent-light); font-style: normal; }

.ex-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.ex-result {
  text-align: center;
  padding: 2rem 0;
  animation: resultIn 0.6s ease;
}

.ex-result h2 {
  margin: 0 0 1rem;
  color: var(--text);
}

.ex-result-score {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold) 0%, var(--warning) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1.5rem 0;
  line-height: 1;
}

.ex-result-max {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.ex-result-label {
  font-size: 1.3rem;
  color: var(--accent-light);
  margin-bottom: 2rem;
  font-weight: 600;
}

.ex-result-breakdown {
  display: grid;
  gap: 0.75rem;
  margin: 2rem auto;
  max-width: 500px;
  text-align: left;
}

.ex-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: var(--bg);
  border-radius: var(--radius-md);
}

.ex-breakdown-item .label {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.ex-breakdown-item .value {
  font-weight: 700;
  color: var(--gold);
}

.ex-result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Specific: Cartographie */
.cartographie-axis {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.cartographie-axis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cartographie-axis-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent-light);
}

.cartographie-axis-score {
  font-weight: 700;
  color: var(--gold);
}

.cartographie-axis-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.cartographie-axis-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--success) 100%);
  transition: width 0.6s ease;
}

/* Specific: Plan 70/20/10 */
.plan-step {
  display: none;
}

.plan-step.active {
  display: block;
  animation: questionIn var(--transition-slow);
}

.plan-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 1rem;
}

.plan-input:focus {
  outline: none;
  border-color: var(--accent);
}

.plan-summary {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.plan-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.plan-summary-label {
  font-weight: 600;
  color: var(--accent-light);
}

.plan-summary-value {
  color: var(--text);
}

/* Specific: Return on Luck */
.rol-opportunity {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.rol-opportunity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.rol-opportunity-title {
  font-weight: 600;
  color: var(--accent-light);
}

.rol-criteria {
  display: grid;
  gap: 0.5rem;
}

.rol-criterion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.rol-criterion-label {
  color: var(--text-dim);
  flex-grow: 1;
}

.rol-stars {
  display: flex;
  gap: 0.25rem;
}

.rol-star {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--border);
  font-size: 1.2rem;
  transition: all var(--transition);
}

.rol-star.active {
  color: var(--gold);
}

.rol-star:hover {
  transform: scale(1.2);
}

/* Celebration animation */
.celebration {
  font-size: 3rem;
  text-align: center;
  margin: 1rem 0;
  animation: celebrateBounce 1s ease;
}

@keyframes celebrateBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}