/**
 * Styles pour le système de classement drag-and-drop
 * Fichier à placer dans css/drag-drop-ranking.css
 */

/* Container du classement */
.ranking-container {
  max-width: 100%;
  margin: 0 auto 30px;
  border-radius: 5px;
  border: 1px solid #eaeaea;
  overflow: hidden;
  background-color: #f9f9f9;
}

/* Instruction de classement */
.ranking-instruction {
  margin-bottom: 20px;
  font-style: italic;
  color: #666;
  font-size: 14px;
}

/* Élément de classement */
.ranking-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
  cursor: grab;
  user-select: none;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item:hover {
  background-color: #f0f7ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ranking-item:active {
  cursor: grabbing;
}

/* Style pour l'élément en cours de déplacement */
.ranking-item.ui-sortable-helper {
  background-color: #e6f0ff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #c0d7ff;
}

/* Numéro de position */
.ranking-item .position {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a4da1;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

/* Nom de l'élément */
.ranking-item .item-name {
  flex-grow: 1;
  font-size: 16px;
  padding-right: 10px;
}

/* Poignée de déplacement */
.ranking-item .drag-handle {
  cursor: grab;
  padding: 8px;
  color: #777;
  margin-right: 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.ranking-item .drag-handle:hover {
  background-color: #eaeaea;
  color: #333;
}

.ranking-item .drag-handle:active,
.ranking-item .drag-handle:focus {
  cursor: grabbing;
  background-color: #e0e0e0;
  outline: none;
}

.ranking-item .drag-handle i {
  font-size: 18px;
  display: block;
}

/* Boutons d'action (flèches) */
.ranking-item .action-buttons {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.ranking-item .action-buttons button {
  border: none;
  background-color: #f0f0f0;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #555;
}

.ranking-item .action-buttons button:hover:not(:disabled) {
  background-color: #e0e0e0;
  color: #333;
}

.ranking-item .action-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Styles spéciaux pour les éléments prioritaires */
.ranking-item.top-priority {
  background-color: #f0f7ff;
}

/* Premier élément (priorité 1) */
.ranking-item.top-priority[data-position="1"] .position,
.ranking-item.top-priority-1 .position {
  background-color: #ff5722;
  font-size: 16px;
  font-weight: bold;
}

/* Deuxième élément (priorité 2) */
.ranking-item.top-priority[data-position="2"] .position {
  background-color: #ff9800;
}

/* Troisième élément (priorité 3) */
.ranking-item.top-priority[data-position="3"] .position {
  background-color: #ffc107;
}

/* Styles pour la liste des résultats dans le bilan */
.ranking-result {
  margin-bottom: 30px;
}

.ranking-result-list {
  padding-left: 20px;
  margin-top: 15px;
}

.ranking-result-item {
  padding: 8px 0;
  font-size: 16px;
}

.ranking-result-item.top-priority-1 {
  font-weight: bold;
  color: #ff5722;
}

.ranking-result-item.top-priority-2 {
  font-weight: bold;
  color: #ff9800;
}

.ranking-result-item.top-priority-3 {
  font-weight: bold;
  color: #ffc107;
}

.ranking-position {
  display: inline-block;
  margin-right: 10px;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .ranking-item {
    padding: 10px;
  }

  .ranking-item .position {
    width: 28px;
    height: 28px;
    margin-right: 8px;
  }

  .ranking-item .item-name {
    font-size: 14px;
  }

  .ranking-item .action-buttons button {
    width: 28px;
    height: 28px;
  }
}

.etape-progress .numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin: 0 auto 10px;
}

.etape-progress.active .numero {
  background-color: #1a4da1;
  border-color: #1a4da1;
  color: white;
}

.etape-progress.complete .numero {
  background-color: #1a4da1;
  border-color: #1a4da1;
  color: white;
}

.etape-progress .titre {
  font-size: 12px;
  display: block;
}

.option {
  margin-bottom: 10px;
}

/* Formulaire de contact */
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

/* Note: Styles de formulaires supprimés pour éviter les conflits avec contact-form.css */

.score-global-container {
  text-align: center;
  margin: 30px 0;
}

.score-global {
  display: inline-block;
  padding: 20px;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.score-global.faible {
  background-color: #ffebee;
  border: 1px solid #ffcdd2;
}

.score-global.moyen {
  background-color: #fff8e1;
  border: 1px solid #ffe082;
}

.score-global.eleve {
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
}

.score-value {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
}

.score-global.faible .score-value {
  color: #d32f2f;
}

.score-global.moyen .score-value {
  color: #ff9800;
}

.score-global.eleve .score-value {
  color: #388e3c;
}

.bilan-section {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
  border: 1px solid #eaeaea;
}

.bilan-section h2 {
  color: #1a4da1;
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eaeaea;
}

.reponses-container {
  margin-top: 20px;
}

.reponse-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #eaeaea;
}

.reponse-item:last-child {
  border-bottom: none;
}

.question-text {
  font-weight: bold;
  margin-bottom: 5px;
}

.reponse-valeur {
  padding: 5px 0;
}

.reponse-option {
  display: inline-block;
  background-color: #e3f2fd;
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 14px;
}

.actions-bilan {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
}

/* Page de visualisation */
.visualisation-diagnostic .diagnostic-date {
  text-align: center;
  margin-bottom: 20px;
  color: #666;
}

.diagnostic-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
}
