/* Habillage de la page autour du quiz. quiz.css est la copie exacte des styles du quiz
   du thème ; ce fichier-ci fournit ce que le thème fournissait (polices, arrondis)
   et transforme la fenêtre du quiz en page entière. */

/* Polices de la boutique (mêmes fichiers que le thème). */
@font-face {
  font-family: "custom_heading";
  src: url("fonts/Dakota-Regular.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "custom_body";
  src: url("fonts/Inter-Medium.woff2") format("woff2");
  font-display: swap;
}

/* Valeurs du thème (Réglages du thème, 2026-11-17) : arrondis 12 / 8 / 10 / 30. */
:root {
  --font-heading--family: "custom_heading", Georgia, serif;
  --font-body--family: "custom_body", system-ui, -apple-system, "Segoe UI", sans-serif;
  --card-border-radius: 12px;
  --inputs-border-radius: 8px;
  --button-border-radius: 10px;
  --badge-border-radius: 30px;
}

html, body { margin: 0; height: 100%; background: #F4F5F4; }

/* Le quiz n'est plus une fenêtre sur une page : c'est la page. */
#kalm-quiz-overlay.kq-overlay {
  background: #F4F5F4;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  flex-direction: column; gap: 14px;
  animation: none;
}
.kq-logo { display: block; height: 26px; width: auto; flex: none; }
.kq-foot {
  flex: none; font-family: var(--font-body--family); font-size: 10px; color: #1A3629; opacity: 0.6;
}
.kq-foot a { color: inherit; text-decoration: underline; }

/* Hauteur : il faut laisser la place du logo et des mentions. */
#kalm-quiz-overlay .kq-modal { max-height: calc(100dvh - 118px); }
#kalm-quiz-overlay .kq-scroll { max-height: calc(100dvh - 120px); }
#kalm-quiz-overlay .kq-scroll:has(.kq-results-title) { max-height: calc(100dvh - 168px); }

@media (max-width: 600px) {
  #kalm-quiz-overlay .kq-modal { max-height: calc(100dvh - 118px); }
  #kalm-quiz-overlay .kq-scroll { max-height: calc(100dvh - 120px); }
  /* Plus de bouton de fermeture à dégager en haut. */
  #kalm-quiz-overlay .kq-container { padding-top: 28px; }
}
