/* Styles spécifiques pour la page Balancement des Bras */

/* Mise en évidence des études */
.study-highlight {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.study-highlight h3 {
  color: #1565c0;
  margin-top: 0;
  margin-bottom: 1rem;
}

.study-highlight ul {
  margin-bottom: 0;
}

.study-highlight li {
  margin-bottom: 0.5rem;
}

/* Tableau des résultats */
.results-table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.results-table thead {
  background: #1e88e5;
  color: white;
}

.results-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.results-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.results-table tbody tr:last-child td {
  border-bottom: none;
}

.results-table tbody tr:hover {
  background: #f5f5f5;
}

.reference-row {
  background: #e8f5e9 !important;
  font-weight: 600;
}

.highlight-good {
  color: #2e7d32;
  font-weight: 600;
}

.highlight-warning {
  color: #f57c00;
  font-weight: 600;
}

.highlight-bad {
  color: #d32f2f;
  font-weight: 600;
}

/* Conclusions clés */
.key-findings {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.key-findings h3 {
  color: #e65100;
  margin-top: 0;
  margin-bottom: 1rem;
}

.key-findings ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Références */
.study-reference {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.study-reference h3 {
  color: #424242;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.study-reference ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.study-reference li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.study-reference em {
  color: #1976d2;
}

/* Formulaire calculateur */
.calculator-form {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #424242;
  font-size: 0.9rem;
}

.form-control {
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #2196f3;
}

.btn-primary {
  background: #1e88e5;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 1rem;
  width: 100%;
}

.btn-primary:hover {
  background: #1565c0;
}

/* Résultats */
.results-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  border: 2px solid #e0e0e0;
}

.results-container h3 {
  color: #1565c0;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.result-card {
  background: #f5f5f5;
  padding: 1.25rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 4px solid #bdbdbd;
}

.result-card.highlight {
  background: #fff3e0;
  border-left-color: #ff9800;
}

.result-card.warning {
  background: #ffebee;
  border-left-color: #f44336;
}

.result-card.good {
  background: #e8f5e9;
  border-left-color: #4caf50;
}

.result-label {
  font-size: 0.9rem;
  color: #616161;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212121;
}

.result-card.highlight .result-value {
  color: #e65100;
}

.result-card.warning .result-value {
  color: #c62828;
}

.result-card.good .result-value {
  color: #2e7d32;
}

.result-explanation {
  background: #e3f2fd;
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  line-height: 1.6;
}

.result-explanation p {
  margin: 0;
}

/* Boîte d'avertissement */
.warning-box {
  background: #fff8e1;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.warning-box h3 {
  color: #f57f17;
  margin-top: 0;
  margin-bottom: 1rem;
}

.warning-box ul {
  margin-bottom: 0.5rem;
}

.warning-box li {
  margin-bottom: 0.5rem;
}

/* Grille de conseils */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.tip-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.tip-card:hover {
  border-color: #2196f3;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
  transform: translateY(-2px);
}

.tip-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.tip-card h4 {
  color: #1565c0;
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.tip-card p {
  color: #616161;
  margin: 0.5rem 0 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Résumé */
.summary-box {
  background: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.summary-box ul {
  margin: 0;
  padding-left: 1.5rem;
}

.summary-box li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .results-table {
    font-size: 0.9rem;
  }

  .results-table th,
  .results-table td {
    padding: 0.75rem 0.5rem;
  }

  .result-value {
    font-size: 1.25rem;
  }

  /* Fix pour le select qui dépasse sur mobile */
  .form-control {
    max-width: 100%;
    width: 100%;
    font-size: 0.9rem;
  }

  select.form-control {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .study-highlight,
  .key-findings,
  .warning-box,
  .summary-box {
    padding: 1rem;
  }

  .tip-card {
    padding: 1rem;
  }

  .calculator-form {
    padding: 1rem;
  }

  .results-container {
    padding: 1.25rem;
  }

  /* Réduction supplémentaire de la taille de police pour les très petits écrans */
  .form-control {
    font-size: 0.85rem;
    padding: 0.65rem;
  }

  select.form-control option {
    font-size: 0.85rem;
  }
}
