/* =====================================================================
   tests-v4.css : allure de la maquette pour les pages du parcours Tests
   (results.html, choix-bilan.html, questionnaire.html, bilan-*.html).
   Uniquement de l'affichage : questions, calculs et enregistrements ne changent pas.
   Couleurs : variables --rtp-* de theme.css (clair par défaut, sombre géré).
   ===================================================================== */

body { background: var(--rtp-page, #F5F7FB); color: var(--rtp-ink, #0B1424); }

/* En-tête bleu nuit, comme le reste du site */
body > header {
  background: var(--rtp-night, #0A1730) !important;
  color: #fff;
  border-bottom-color: rgba(255,255,255,.12) !important;
}
body > header a, body > header span, body > header button { color: #fff !important; }
body > header a:hover { opacity: .85; }
body > header #theme-toggle { border: 1px solid rgba(255,255,255,.3); border-radius: 10px; width: 36px; height: 36px; display: inline-grid; place-items: center; }
/* Téléphone : les liens de l'en-tête passent à la ligne au lieu de faire déborder la page */
body > header { flex-wrap: wrap; row-gap: 8px; }
body > header > div { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; min-width: 0; }

/* Titres : Oswald en capitales, interligne confortable (accents lisibles) */
main h1, main h2, main h3 { font-family: 'Oswald', sans-serif; text-transform: uppercase; line-height: 1.2; }
main h1 { color: var(--rtp-ink, #0B1424); }

/* Boutons principaux */
main .bg-brand-blue { background-color: var(--rtp-navy, #0F4CA9) !important; color: #fff; border-radius: 12px; }
main .bg-brand-blue:hover { filter: brightness(1.08); }
main .bg-brand-blue:disabled, main button.bg-brand-blue[disabled] { background-color: var(--rtp-soft, #F3F6FB) !important; color: var(--rtp-muted, #4A5568) !important; filter: none; }

/* Cartes et cadres : fond plein, bord léger, coins arrondis */
main .rounded-xl, main .rounded-2xl { border-radius: 16px; }
main [class*="border-[color:var(--border)]"], main [class*="border-[color:var(--border-strong)]"] { border-color: var(--rtp-line, #DCE3ED) !important; }

/* Choix du bilan de mobilité : les liens deviennent des cartes et des pastilles */
main a[href^="questionnaire.html?mode="] {
  display: block; background: var(--rtp-night, #0A1730) !important; color: #fff !important;
  border-radius: 16px; padding: 24px; text-decoration: none; transition: transform .15s ease;
}
main a[href^="questionnaire.html?mode="] h2, main a[href^="questionnaire.html?mode="] p { color: #fff !important; }
main a[href^="questionnaire.html?zone="] {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--rtp-surface, #fff) !important; border: 1.5px solid var(--rtp-line, #DCE3ED) !important;
  color: var(--rtp-ink, #0B1424) !important; font-weight: 500; text-decoration: none; transition: border-color .15s ease;
}
main a[href^="questionnaire.html?zone="]:hover { border-color: var(--rtp-navy, #0F4CA9) !important; }
main a[href^="questionnaire.html?mode="]:hover { transform: translateY(-2px); }

/* Boutons de réponse du questionnaire de mobilité */
main .rating-btn { border-radius: 10px; background: var(--rtp-surface, #fff); min-height: 44px; }

/* Vidéo d'un test de mobilité (Google Drive), si le test en a une */
.test-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--rtp-night, #0A1730); margin: 0 0 16px; }
.test-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

:focus-visible { outline: 3px solid #2D7AED; outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { main * { transition: none !important; } }
