.fonctions-app {
  max-width: 1120px;
}

.fonctions-app #chemin {
  margin-bottom: 72px;
}

.exercise {
  border-top: 1px solid rgba(120, 120, 120, 0.24);
  padding: 26px 0;
}

.exercise:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.exercise h2 {
  margin: 0 0 18px;
}

.consigne {
  color: var(--texte-secondaire, #555);
  margin: 0 0 24px;
  padding: 0;
}

.questions {
  margin: 0 0 18px;
  padding-left: 1.5rem;
  width: auto;
}

.questions li {
  margin-bottom: 18px;
  padding-left: 4px;
}

.select-questions li {
  line-height: 1.55;
}

.question-sentence {
  display: block;
  margin-bottom: 8px;
}

.answer-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.questions p {
  margin: 0 0 12px;
  padding-left: 0;
}

.questions label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 6px 14px 0 0;
}

.select-questions label,
.input-questions label {
  background: rgba(120, 120, 120, 0.06);
  background: color-mix(in srgb, var(--fond, #fff) 94%, #888 6%);
  border: 1px solid rgba(120, 120, 120, 0.22);
  border-radius: 6px;
  color: var(--texte, #444);
  margin: 0;
  padding: 4px 6px;
}

.select-questions label > span,
.input-questions label > span {
  font-weight: 600;
}

input,
select {
  border: 1px solid rgba(90, 90, 90, 0.5);
  border-radius: 6px;
  font: inherit;
  min-height: 34px;
  padding: 4px 8px;
}

input {
  max-width: 340px;
  width: min(58vw, 340px);
}

select {
  background: var(--fond, #fff);
  max-width: 100%;
}

.select-questions select {
  min-height: 31px;
  padding: 3px 7px;
}

input.is-correct,
select.is-correct {
  background-color: #f1f8f3;
  border-color: rgba(31, 122, 58, 0.48);
  border-width: 1px;
  box-shadow: none;
  color: #123d20;
}

input.is-incorrect,
select.is-incorrect {
  background-color: #fff4f4;
  border-color: rgba(194, 37, 37, 0.44);
  border-width: 1px;
  box-shadow: none;
  color: #5c1515;
}

html[data-theme="dark"] .select-questions label,
html[data-theme="dark"] .input-questions label {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e7e7e7;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select {
  background: #191919;
  border-color: rgba(255, 255, 255, 0.34);
  color: #f1f1f1;
}

html[data-theme="dark"] option {
  background: #191919;
  color: #f1f1f1;
}

html[data-theme="dark"] input.is-correct,
html[data-theme="dark"] select.is-correct {
  background-color: #13291a;
  border-color: rgba(85, 163, 106, 0.64);
  box-shadow: none;
  color: #e7f6eb;
}

html[data-theme="dark"] input.is-incorrect,
html[data-theme="dark"] select.is-incorrect {
  background-color: #321717;
  border-color: rgba(211, 106, 106, 0.64);
  box-shadow: none;
  color: #ffecec;
}

.action-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 8px;
  margin-top: 8px;
  min-height: 36px;
  padding: 6px 12px;
}

.action-button {
  background: #1f5f8f;
  color: #fff;
}

.action-button:hover,
.action-button:focus {
  background: #174b73;
}

.exercise-result {
  display: inline-flex;
  font-weight: 600;
  margin: 0 0 0 16px;
  padding-left: 0;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .questions {
    padding-left: 1.25rem;
  }

  .questions label {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .answer-group {
    gap: 10px;
  }

  input,
  select {
    box-sizing: border-box;
    width: 100%;
  }

  .exercise-result {
    display: flex;
    margin: 12px 0 0;
  }
}
