*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Open sans, sans-serif;
  color: #0e0e0e;
}
.quiz-page {
  padding: 50px 20px 140px;
  background-image: radial-gradient(#fcfcfc,#d4e8f9);
  min-height: 100vh;
}
.quiz-page__title {
  font-family: Roboto, sans-serif;
  font-size: 40px;
  margin-bottom: 82px;
  font-weight: 400;
  letter-spacing: 2px;
  text-align: center;
}
.quiz-page__title--style {
  font-weight: 800;
}
.quiz {
  max-width: 800px;
  margin: 0 auto;
}
.quiz__question-block {
  padding: 25px;
  margin: 40px 0;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 5px 10px rgba(104,104,104,0.5);
}
.quiz__question {
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 20px;
}
.quiz__input-group {
  margin: 10px 0;
  display: flex;
  align-items: center;
}
.quiz__label,
.quiz__radio-input {
  cursor: pointer;
}
.quiz__label {
  font-size: 20px;
}
.quiz__radio-input {
  width: 20px;
  height: 20px;
  margin-right: 15px;
}
.quiz__form {
  padding-bottom: 40px;
}
.quiz__submit-button {
  display: block;
  margin: 0 auto;
  border-radius: 5px;
  background-color: #fff;
  min-width: 200px;
  padding: 15px 5px;
  font-size: 20px;
  cursor: pointer;
  border: none;
  box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}
.quiz__results {
  padding: 40px 10px;
  border-radius: 5px;
  box-shadow: 0 5px 7px rgba(0,0,0,0.2);
  background-color: #fff;
  display: none;
}
.quiz__description {
  text-align: center;
  font-size: 22px;
  font-family: Roboto, sans-serif;
  font-weight: 400;
}
.sticky-header {
  position: -webkit-sticky; /* Pour la compatibilité Safari */
  position: sticky;
  top: 0;
  z-index: 1000; /* Pour passer par-dessus les questions */
  background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent pour le style */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 10px 0;
  width: 100%;
}
.progress-container {
  width: 100%;
  height: 8px;
  background-color: #eee;
  margin-bottom: 10px;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #3da406;
  transition: width 0.4s ease;
}

.quiz__timer {
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
  color: #ff6565;
}
.quiz__reset-button {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  background-color: #3da406;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.2s;
}

.quiz__reset-button:hover {
  background-color: #2e7d05;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}