/* ===== SCORING MODULE - STYLES ===== */

/* Container principal du calculateur */
.score-calculator {
  background: var(--bg-canvas, #ffffff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: var(--border-radius, 8px);
  padding: 24px;
  margin-bottom: 16px;
}

.recommendation {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary, #666);
  padding: 12px;
  background: var(--bg-sidebar, #f5f5f5);
  border-radius: var(--border-radius, 6px);
  margin-top: 16px;
}

/* ===== NOUVEAU LAYOUT EISINGER (COMPACT 3 COLONNES) ===== */

/* Header du score */
.eisinger-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.eisinger-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
}

.eisinger-subtitle {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary, #666);
}

/* Grid principal: critères + résultat */
.eisinger-calculator-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

/* Grille des critères: 2 colonnes */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
}

.criteria-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-sidebar, #f8f9fa);
  border-radius: 6px;
  border: 1px solid var(--border-color, #e0e0e0);
}

.criteria-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text-primary, #1a1a1a);
}

.criteria-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.criteria-points {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, #888);
  white-space: nowrap;
}

.criteria-input {
  width: 48px;
  padding: 4px 6px;
  text-align: center;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
}

.criteria-input:focus {
  outline: none;
  border-color: var(--accent-color, #4a90e2);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

/* Panneau de résultat (colonne droite, compact) */
.eisinger-result-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: var(--bg-sidebar, #f8f9fa);
  border-radius: 8px;
  border: 1px solid var(--border-color, #e0e0e0);
  min-width: 130px;
  align-self: stretch;
}

.score-display {
  text-align: center;
  margin-bottom: 8px;
}

.score-display .score-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary, #888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.score-display .score-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary, #1a1a1a);
  transition: color 0.2s ease;
}

/* Interprétation */
.score-interpretation {
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  transition: background-color 0.2s ease;
}

.score-interpretation .interpretation-text {
  font-size: 12px;
  font-weight: 600;
}

/* États du score */
.eisinger-result-panel.high .score-value {
  color: #e53935;
}

.eisinger-result-panel.high .score-interpretation {
  background: #ffebee;
}

.eisinger-result-panel.high .interpretation-text {
  color: #c62828;
}

.eisinger-result-panel.intermediate .score-value {
  color: #f57c00;
}

.eisinger-result-panel.intermediate .score-interpretation {
  background: #fff3e0;
}

.eisinger-result-panel.intermediate .interpretation-text {
  color: #e65100;
}

.eisinger-result-panel.low .score-value {
  color: #43a047;
}

.eisinger-result-panel.low .score-interpretation {
  background: #e8f5e9;
}

.eisinger-result-panel.low .interpretation-text {
  color: #2e7d32;
}

/* Légende */
.score-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--border-color, #e0e0e0);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-secondary, #666);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-item.high .legend-dot {
  background: #e53935;
}

.legend-item.intermediate .legend-dot {
  background: #f57c00;
}

.legend-item.low .legend-dot {
  background: #43a047;
}

/* Responsive - Small screens */
@media (max-width: 768px) {
  .score-calculator {
    padding: 16px;
  }

  .score-value {
    font-size: 28px;
  }

  /* Eisinger: stack on mobile */
  .eisinger-header {
    flex-direction: column;
    gap: 4px;
  }

  .eisinger-calculator-grid {
    grid-template-columns: 1fr;
  }

  .criteria-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .eisinger-result-panel {
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 8px;
  }
}
