/* Importer Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 40px 20px;
    background-color: #f8f9fa;
    color: #2c3e50;
}

#container {
    width: 90%;
    max-width: 720px;
    margin: auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Titre + question */
#question {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.4;
    color: #1e2a38;
    min-height: 100px;
}

#question .question-progress {
    font-weight: 200;
    margin-bottom: 10px;
}

/* Choix de réponses */
#choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-button {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    border: none;
    background-color: #43A3DB;
    color: #ffffff;
    
    
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.choice-button:hover {
    background-color: #2662AD;
}

.choice-button:active {
    transform: scale(0.98);
}

.choice-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#results h2 {
    color: #2662AD;
}


/* Sur écrans < 480px */
@media (max-width: 480px) {
    #container {
      padding: 1rem;
    }
  
    .choice-button {
      font-size: 0.875rem;    /* un peu plus petit */
      padding: 0.75rem 1rem;
    }
  }

/* Conteneur pour gérer le débordement sur petits écrans */
#results {
    overflow-x: auto;
  }
  
  /* Style général du tableau */
  #scores-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden; /* pour arrondir les coins */
    background: #ffffff;
  }
  
  /* En-tête */
  #scores-table thead {
    background-color: #43A3DB;
  }
  
  #scores-table thead th {
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    letter-spacing: 0.02em;
  }
  
  /* Corps et lignes alternées */
  #scores-table tbody tr:nth-child(even) {
    background-color: #f2f8fc;
  }
  
  #scores-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    color: #2c3e50;
  }
  
  /* Dernière ligne sans bord bas */
  #scores-table tbody tr:last-child td {
    border-bottom: none;
  }
  
  /* Effet au survol */
  #scores-table tbody tr:hover {
    background-color: #d0eafc;
    transition: background-color 0.2s ease;
  }
  
  /* Responsive : texte un peu plus petit sur très petits écrans */
  @media (max-width: 480px) {
    #scores-table thead th,
    #scores-table tbody td {
      padding: 8px 12px;
      font-size: 0.9rem;
    }
  }
  

  /* Bouton “Recommencer le questionnaire” */
#reset-button {
    display: inline-block;
    margin-top: 32px;
    padding: 0.875rem 1.5rem;       /* env. 14px 24px */
    font-size: 1rem;               /* adaptatif si l’utilisateur change la taille */
    font-weight: 500;
    color: #43A3DB;                /* même bleu que les choix */
    background-color: transparent; /* style outline */
    border: 2px solid #43A3DB;
    border-radius: 999px;          /* pill shape */
    cursor: pointer;
    transition: 
      background-color 0.2s ease, 
      color 0.2s ease, 
      transform 0.1s ease;
  }
  
  /* Hover / focus */
  #reset-button:hover,
  #reset-button:focus {
    background-color: #43A3DB;
    color: #ffffff;
    outline: none;
  }
  
  /* Focus visible pour clavier */
  #reset-button:focus-visible {
    outline: 2px dashed #2662AD;
    outline-offset: 3px;
  }
  
  /* Active (clic) */
  #reset-button:active {
    transform: scale(0.98);
  }
  
  /* Adaptation sur petits écrans */
  @media (max-width: 480px) {
    #reset-button {
      padding: 0.75rem 1.25rem;
      font-size: 0.9rem;
      margin-top: 24px;
    }
  }
  

  
  /* Un peu de style pour ces messages */
  #constraint-messages {
    margin-top: 24px;
    background: #f2f8fc;
    padding: 16px 24px;
    border-radius: 8px;
  }
  
  #constraint-messages h3 {
    margin-bottom: 16px;
    color: #1e2a38;
  }
  
  #constraint-messages section {
    margin-bottom: 16px;
  }
  
  #constraint-messages h4 {
    margin-bottom: 8px;
    font-weight: 600;
  }
  
  #constraint-messages ul {
    padding-left: 1.2em;
  }
  
  #constraint-messages li {
    margin-bottom: 4px;
    line-height: 1.4;
  }

  
  /* Bloc des messages contraignants */
#constraint-messages {
    background: #f2f8fc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
  }
  
  /* Les deux messages les plus élevés */
  #constraint-messages section.highlight {
    background: #d0eafc;
    padding: 1rem;
    border-left: 4px solid #43A3DB;
    margin-bottom: 1rem;
  }
  
  /* Les trois autres */
  #constraint-messages section.other {
    background: #ffffff;
    padding: 1rem;
    border-left: 4px solid #cccccc;
    margin-bottom: 1rem;
  }

  /* Bloc des messages ressources (mêmes dimensions que contraignants) */
#resource-messages {
    background: #e6f9f1;        /* fond vert très pâle */
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
  }
  
  /* Les deux ressources les plus importantes */
  #resource-messages section.highlight {
    background: #c8f3dc;        /* vert clair un peu plus marqué */
    padding: 1rem;
    border-left: 4px solid #28a678; /* vert foncé pour la bordure */
    margin-bottom: 1rem;
  }
  
  /* Les trois autres ressources */
  #resource-messages section.other {
    background: #ffffff;        /* même fond blanc pour la discrétion */
    padding: 1rem;
    border-left: 4px solid #a0ccb0; /* vert doux pour la bordure */
    margin-bottom: 1rem;
  }
  

  .hidden {
    display: none !important;
  }

  /* Échos du style constraint-messages pour resource-messages */
#resource-messages {
    margin-top: 2rem;          /* même marge */
    background: #e6f9f1;       /* ton vert pâle */
    padding: 1.5rem;           /* même padding */
    border-radius: 8px;
  }
  
  #resource-messages h3 {
    margin-bottom: 1rem;       /* comme pour h3 des contraintes */
    color: #1e2a38;            /* même couleur que pour consistency */
  }
  
  #resource-messages section {
    margin-bottom: 1rem;       /* même espacement entre sections */
  }
  
  #resource-messages h4 {
    margin-bottom: 0.5rem;     /* identique aux 8px des contraintes */
    font-weight: 600;          /* même font-weight */
  }
  
  #resource-messages ul {
    padding-left: 1.2em;       /* alignement équivalent */
  }
  
  #resource-messages li {
    margin-bottom: 0.25rem;    /* la même marge de 4px */
    line-height: 1.4;          /* identique à celui des contraintes */
  }
  