/* ATS Quiz — Quiz du football africain (AfricaTopSports). Version 1.0.0 */
.ats-quiz {
  --aq-green: #003919;
  --aq-green-2: #00502a;
  --aq-gold: #efab00;
  --aq-red: #c8102e;
  --aq-grey: #f0f0f0;
  --aq-soft: #f7f7f7;
  --aq-line: #d9d9d9;
  --aq-ink: #1c1c1c;
  box-sizing: border-box;
  max-width: 780px;
  margin: 2.2em auto;
  padding: 0 1.25em;
  color: var(--aq-ink);
  font-family: inherit;
  line-height: 1.55;
}
.ats-quiz *, .ats-quiz *::before, .ats-quiz *::after { box-sizing: border-box; }

/* accueil */
#ats-quiz .aq-title { margin: .2em 0 .35em; font-size: 1.75em; line-height: 1.2; font-weight: 700; color: var(--aq-green); text-transform: uppercase; letter-spacing: .02em; }
#ats-quiz .aq-lead { margin: 0 0 1.4em; font-size: 1.05em; }
#ats-quiz .aq-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; margin: 0 0 1em; }
#ats-quiz .aq-level {
  appearance: none; -webkit-appearance: none;
  display: flex; flex-direction: column; align-items: flex-start; gap: .3em;
  min-height: 124px; padding: 1em .9em; text-align: left;
  background: #fff; border: 2px solid var(--aq-line); border-radius: 10px;
  color: inherit; font: inherit; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
#ats-quiz .aq-level:hover, #ats-quiz .aq-level:focus-visible { border-color: var(--aq-green); outline: none; box-shadow: 0 0 0 3px rgba(0, 57, 25, .12); }
#ats-quiz .aq-level.is-selected { border-color: var(--aq-green); box-shadow: inset 0 0 0 1px var(--aq-green); }
#ats-quiz .aq-level__name { font-size: 1.1em; font-weight: 700; color: var(--aq-green); }
#ats-quiz .aq-level__desc { font-size: .9em; color: #444; }
#ats-quiz .aq-level__meta { margin-top: auto; font-size: .8em; color: #666; }
#ats-quiz .aq-note { margin: .6em 0; font-size: .92em; color: #555; }
#ats-quiz .aq-note--center { text-align: center; }

/* boutons */
#ats-quiz .aq-btn {
  appearance: none; -webkit-appearance: none;
  display: inline-block; min-height: 48px; padding: .75em 1.4em;
  border: 2px solid var(--aq-green); border-radius: 8px; background: #fff;
  color: var(--aq-green); font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
#ats-quiz .aq-btn:hover, #ats-quiz .aq-btn:focus-visible { background: var(--aq-grey); outline: none; }
#ats-quiz .aq-btn--primary { background: var(--aq-green); color: #fff; }
#ats-quiz .aq-btn--primary:hover, #ats-quiz .aq-btn--primary:focus-visible { background: var(--aq-green-2); color: #fff; }

/* partie */
#ats-quiz .aq-hud { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3em 1em; margin: 0 0 .5em; font-size: .9em; font-weight: 700; color: var(--aq-green); }
#ats-quiz .aq-progress {
  appearance: none; -webkit-appearance: none;
  display: block; width: 100%; height: 10px; margin: 0 0 1.4em;
  border: 0; border-radius: 5px; overflow: hidden; background: var(--aq-grey);
}
#ats-quiz .aq-progress::-webkit-progress-bar { background: var(--aq-grey); border-radius: 5px; }
#ats-quiz .aq-progress::-webkit-progress-value { background: var(--aq-gold); border-radius: 5px; }
#ats-quiz .aq-progress::-moz-progress-bar { background: var(--aq-gold); border-radius: 5px; }
#ats-quiz .aq-question { margin: 0 0 1.1em; font-size: 1.35em; font-weight: 700; line-height: 1.35; }
#ats-quiz .aq-answers { display: grid; gap: .6em; }
#ats-quiz .aq-answer {
  appearance: none; -webkit-appearance: none;
  display: flex; align-items: center; gap: .8em; width: 100%; min-height: 56px;
  padding: .65em .9em; border: 2px solid var(--aq-line); border-radius: 10px;
  background: #fff; color: inherit; font: inherit; font-size: 1.02em; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
#ats-quiz .aq-answer:hover:not(:disabled), #ats-quiz .aq-answer:focus-visible { border-color: var(--aq-green); outline: none; background: #f4faf6; }
#ats-quiz .aq-answer:disabled { cursor: default; opacity: .75; }
#ats-quiz .aq-answer__key {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--aq-green); color: #fff; font-size: .8em; font-weight: 700;
}
#ats-quiz .aq-answer__text { flex: 1 1 auto; }
#ats-quiz .aq-answer.is-correct { opacity: 1; border-color: var(--aq-green); background: #e6f4ea; font-weight: 700; }
#ats-quiz .aq-answer.is-wrong { opacity: 1; border-color: var(--aq-red); background: #fdecef; }
#ats-quiz .aq-answer.is-wrong .aq-answer__key { background: var(--aq-red); }
#ats-quiz .aq-feedback { margin: 1.1em 0 0; padding: 1em 1.1em; border-left: 5px solid var(--aq-green); border-radius: 10px; background: var(--aq-soft); }
#ats-quiz .aq-feedback:empty { display: none; }
#ats-quiz .aq-feedback.is-ko { border-left-color: var(--aq-red); }
#ats-quiz .aq-feedback p { margin: 0 0 .7em; }
#ats-quiz .aq-feedback__label { font-weight: 700; }
#ats-quiz .aq-feedback.is-ok .aq-feedback__label { color: var(--aq-green); }
#ats-quiz .aq-feedback.is-ko .aq-feedback__label { color: var(--aq-red); }
#ats-quiz .aq-feedback__info { font-size: .95em; color: #444; }

/* résultat */
#ats-quiz .aq-score { margin: .2em 0; font-size: 3.4em; font-weight: 800; line-height: 1; color: var(--aq-green); text-align: center; }
#ats-quiz .aq-score__total { font-size: .45em; font-weight: 600; color: #666; }
#ats-quiz .aq-verdict { margin: .2em 0 .8em; font-size: 1.3em; font-weight: 700; color: var(--aq-green); text-align: center; }
#ats-quiz .aq-perfect { margin: 1em 0; padding: 1em; border-radius: 10px; background: #e6f4ea; color: var(--aq-green); font-weight: 700; }
#ats-quiz .aq-subtitle { margin: 1.2em 0 .6em; font-size: 1.15em; color: var(--aq-green); }
#ats-quiz .aq-recap { display: grid; gap: .8em; margin: 0; padding: 0; list-style: none; }
#ats-quiz .aq-recap__item { padding: .9em 1em; border: 1px solid var(--aq-line); border-radius: 10px; background: #fff; }
#ats-quiz .aq-recap p { margin: .15em 0; }
#ats-quiz .aq-recap__q { font-weight: 700; }
#ats-quiz .aq-recap__line { font-size: .95em; }
#ats-quiz .aq-recap__line--ko { color: var(--aq-red); }
#ats-quiz .aq-recap__line--ok { font-weight: 700; color: var(--aq-green); }
#ats-quiz .aq-recap__info { font-size: .9em; color: #555; }
#ats-quiz .aq-actions { display: flex; flex-wrap: wrap; gap: .7em; justify-content: center; margin: 1.4em 0; }
#ats-quiz .aq-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; justify-content: center; margin: 1em 0; font-size: .95em; }
#ats-quiz .aq-share__label { font-weight: 700; }
#ats-quiz .aq-share__link {
  display: inline-block; padding: .35em .9em; border-radius: 999px;
  background: var(--aq-green); color: #fff; font-weight: 700; text-decoration: none;
}
#ats-quiz .aq-share__link:hover, #ats-quiz .aq-share__link:focus-visible { background: var(--aq-green-2); color: #fff; outline: none; }
#ats-quiz .aq-footnote { margin: 1em 0 0; font-size: .85em; color: #777; text-align: center; }

@media (max-width: 640px) {
  #ats-quiz .aq-title { font-size: 1.4em; }
  #ats-quiz .aq-question { font-size: 1.15em; }
  #ats-quiz .aq-levels { grid-template-columns: 1fr; }
  #ats-quiz .aq-level { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: .6em; min-height: 0; }
  #ats-quiz .aq-level__meta { width: 100%; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #ats-quiz .aq-level, #ats-quiz .aq-btn, #ats-quiz .aq-answer { transition: none; }
}
