/* =====================================================
    STYLES GÉNÉRAUX DU QUIZ
   ===================================================== */
.quiz-section {
  padding: 60px 20px;
  width: 100%;
  margin: 0;
  text-align: center;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-background-1);
  position: relative;
  overflow: hidden;
}


.quiz-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--bg-gradient);
  opacity: 0.1;
  animation: rotate-bg var(--bg-speed) linear infinite;
  z-index: 0;
}

@keyframes rotate-bg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .quiz-section::before {
    /* on garde le gradient */
    animation: rotate-bg var(--bg-speed) linear infinite;
    opacity: 0.18;

    /* REPOSITIONNEMENT MOBILE */
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%) rotate(0deg);
  }
}


.section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-secondary);
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.quiz-section p {
  font-size: 1.2em;
  line-height: var(--line-height-base);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* =====================================================
    CHOIX DE PROFIL
   ===================================================== */
.quiz-choice-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.quiz-choice-buttons button {
  background: var(--color-primary);
  opacity: 0.9;
  color: var(--color-text-light);
  border: none;
  padding: 16px 28px;
  font-size: 1.1em;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-light);
  transform: translateY(0);
}

.quiz-choice-buttons button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-medium);
  background: var(--color-accent);
}

/* =====================================================
    QUESTIONS
   ===================================================== */
.quiz-question {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.quiz-question h2 {
  font-size: 1.6em;
  margin-bottom: 25px;
  color: var(--color-accent);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.quiz-answers .quiz-answer {
  background-color: var(--color-background-2);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 14px 22px;
  border-radius: var(--border-radius);
  cursor: pointer;
  width: 280px;
  font-size: 1.05em;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.quiz-answers .quiz-answer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  transition: all 0.6s ease;
}

.quiz-answers .quiz-answer:hover::before {
  left: 0;
}

.quiz-answers .quiz-answer:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-medium);
}

/* =====================================================
    RÉSULTAT
   ===================================================== */
#quiz-result {
  margin-top: 50px;
  background-color: var(--color-background-3);
  padding: 35px 25px;
  border-radius: var(--border-radius);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-light);
  text-align: center;
  position: relative;
  z-index: 1;
}

#quiz-result h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--color-secondary);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

#quiz-result p {
  font-size: 1.15em;
  margin-bottom: 25px;
  line-height: var(--line-height-base);
  color: var(--color-text);
}

.quiz-cta {
  display: inline-block;
  padding: 14px 28px;
  background-color: var(--color-accent);
  color: var(--color-text-light);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-light);
  font-weight: 600;
}

.quiz-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-medium);
  background-color: var(--color-secondary);
  color: var(--color-background-1);
}

/* =====================================================
    CLASSES UTILES
   ===================================================== */
.hidden {
  display: none !important;
}

/* =====================================================
    RESPONSIVE
   ===================================================== */
@media (max-width: 600px) {
  .quiz-answers .quiz-answer { width: 100%; }
  .quiz-choice-buttons { flex-direction: column; }
}



/* NO */
.no-underline::before {
    content: none !important;
    width: 0 !important;
}

.no-underline:hover::before {
    width: 0 !important;
}


.no-before::before {
    content: none !important;
    width: 0 !important;
}

.no-before:hover::before {
    width: 0 !important;
}

/* =====================================================
    RESPONSIVE TABLETTE + MOBILE (≤ 799px)
   ===================================================== */
@media (max-width: 799px) {

  /* ==========================
     QUIZ SECTION
     ========================== */
  .quiz-section {
    padding: 50px 20px;
  }

  .section-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .quiz-section p {
    font-size: 1.05em;
    margin-bottom: 35px;
  }

  /* ==========================
     CHOIX DE PROFIL
     ========================== */
  .quiz-choice-buttons {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }

  .quiz-choice-buttons button {
    width: 80%;
    max-width: 300px;
    padding: 14px 20px;
    font-size: 1.05em;
  }

  /* ==========================
     QUESTIONS
     ========================== */
  .quiz-question h2 {
    font-size: 1.5em;
    margin-bottom: 25px;
  }

  .quiz-answers {
    gap: 16px;
  }

  .quiz-answers .quiz-answer {
    width: 100%;
    max-width: 320px;
    font-size: 1.05em;
    padding: 14px 18px;
  }

  /* ==========================
     RÉSULTAT
     ========================== */
  #quiz-result {
    padding: 30px 20px;
  }

  #quiz-result h2 {
    font-size: 1.8em;
    margin-bottom: 18px;
  }

  #quiz-result p {
    font-size: 1.05em;
    margin-bottom: 22px;
  }

  .quiz-cta {
    width: 90%;
    max-width: 280px;
    padding: 14px 20px;
    font-size: 1.05em;
    text-align: center;
  }
}

/* FIX */
.quiz-needs-justify {
  text-align: left;
  margin: 0 0 0 10px;
}

#contact-message {
  text-align: center;
  margin-top: 20px;
}

@media (max-width: 799px) {
  #quiz-result-message {
    line-height: 1.8;
  }

  #quiz-result-message br {
    content: "";
    display: block;
    margin-bottom: 8px;
  }
}


/* Cible uniquement les .cta-link qui ont la classe .no-arrow */
.cta-link.no-arrow::after {
    display: none !important; /* supprime la fleche */
}


/* FIX TXT */
@media (max-width: 799px) {
  .quiz-section p {
    line-height: 1.8;
    margin-bottom: 40px;
  }
}


@media (max-width: 799px) {
  .quiz-question h2 {
    line-height: 1.5;
  }
}
