/* ============================================================
   RBQ Express — Quantralux Design System v4.0
   ============================================================ */
:root {
  --navy: #0A1A2F; --navy-soft: #153A7A; --gold: #D4AF37; --gold-dark: #B8960F;
  --bg: #0A1A2F; --text-main: #F2F4F7; --text-muted: #B8C0CC;
  --card-bg: #FFFFFF; --card-border: rgba(21, 58, 122, 0.2);
  --btn-primary: #1E4A7A; --btn-primary-hover: #1B449B; --divider: #153A7A;
  --success: #22c55e; --warning: #f59e0b; --error: #ef4444;
}
body.dark-mode {
  --navy: #0a1628; --navy-soft: #111d33; --gold: #00d4ff; --gold-dark: #0099cc;
  --bg: #0a1628; --text-main: #ffffff; --text-muted: #94a3b8;
  --card-bg: #f8f9fc; --card-border: rgba(0, 212, 255, 0.2);
  --btn-primary: #00d4ff; --btn-primary-hover: #0099cc; --divider: #153A7A;
  --success: #22c55e; --warning: #f59e0b; --error: #ef4444;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text-main); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background 0.4s ease, color 0.4s ease; }
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse at center, #1B449B 0%, #153A7A 40%, #0A1A2F 100%); z-index: -1; pointer-events: none; }
body.dark-mode::before { background: radial-gradient(ellipse at center, #0f1f38 0%, #111d33 40%, #0a1628 100%); }
a { color: inherit; text-decoration: none; } img { max-width: 100%; height: auto; } button { cursor: pointer; font-family: inherit; }
/* Hide languages — JavaScript controls visibility via inline style */
.lang-fr { display: inline; }
.lang-en { display: none; }
.theme-toggle { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-soft); border: 2px solid var(--card-border); color: var(--gold); font-size: 1.3rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 9998; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.theme-toggle:hover { transform: scale(1.1); border-color: var(--gold); }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 7vw; background: linear-gradient(135deg, rgba(10,26,47,0.95), rgba(21,58,122,0.98)); backdrop-filter: blur(20px); border-bottom: 2px solid var(--gold); position: sticky; top: 0; z-index: 20; }
body.dark-mode .site-header { background: linear-gradient(135deg, rgba(10,22,40,0.95), rgba(17,29,51,0.98)); }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 800; font-size: 18px; box-shadow: 0 8px 18px rgba(212,175,55,0.3); }
body.dark-mode .logo-mark { box-shadow: 0 8px 18px rgba(0,212,255,0.3); }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-weight: 700; letter-spacing: 0.04em; font-size: 16px; color: var(--text-main); }
.logo-subtitle { font-size: 12px; color: var(--text-muted); }
.main-nav a { color: var(--text-muted); margin-left: 24px; font-size: 14px; font-weight: 500; position: relative; transition: color 0.2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width 0.2s ease; }
.main-nav a:hover { color: var(--gold); } .main-nav a:hover::after { width: 100%; }
main { flex: 1; }
.hero { padding: 80px 7vw 60px 7vw; display: flex; align-items: center; justify-content: center; background: transparent; }
.hero-content { max-width: 720px; text-align: center; }
.hero-badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 1rem; border-radius: 50px; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: var(--text-main); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto 32px auto; font-size: 1.1rem; line-height: 1.7; }
.section { padding: 60px 7vw; background: transparent; }
.section-alt { padding: 60px 7vw; background: rgba(21, 58, 122, 0.15); }
body.dark-mode .section-alt { background: rgba(0, 212, 255, 0.05); }
.section-tag { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; margin-bottom: 0.75rem; color: var(--text-main); }
.section-desc { color: var(--text-muted); max-width: 640px; margin-bottom: 2rem; font-size: 1rem; line-height: 1.7; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 28px; font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; text-decoration: none; }
.btn-primary { background: var(--btn-primary); color: #FFF; box-shadow: 0 4px 15px rgba(27,68,155,0.3); }
.btn-primary:hover { background: var(--btn-primary-hover); transform: translateY(-2px); }
body.dark-mode .btn-primary { background: var(--gold); color: var(--navy); }
body.dark-mode .btn-primary:hover { background: var(--gold-dark); }
.btn-secondary { background: transparent; border-color: var(--card-border); color: var(--gold); }
.btn-secondary:hover { background: rgba(212,175,55,0.1); border-color: var(--gold); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--card-border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold); font-size: 0.9rem; font-weight: 600; margin-bottom: 1.5rem; transition: all 0.3s; }
.back-link:hover { transform: translateX(-3px); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.info-card { background: var(--card-bg); border-radius: 18px; padding: 28px; border: 3px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.3); color: #0A1A2F; }
body.dark-mode .info-card { color: var(--text-main); }
.info-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
body.dark-mode .info-card h3 { color: var(--text-main); }
.info-card p { color: #333; margin-bottom: 12px; line-height: 1.6; }
body.dark-mode .info-card p { color: var(--text-muted); }
.info-card ul { padding-left: 1.2rem; }
.info-card li { margin-bottom: 8px; line-height: 1.5; font-size: 0.9rem; color: #444; }
body.dark-mode .info-card li { color: var(--text-muted); }
.card-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.steps { max-width: 700px; margin: 0 auto; }
.step { display: flex; gap: 20px; margin-bottom: 28px; }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.step-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--text-main); }
.step-content p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }
.exams-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.exam-card { background: var(--card-bg); border-radius: 18px; padding: 28px; border: 3px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.3); color: #0A1A2F; }
body.dark-mode .exam-card { color: var(--text-main); }
.exam-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
body.dark-mode .exam-card h3 { color: var(--text-main); }
.exam-card p { color: #333; margin-bottom: 12px; line-height: 1.6; }
body.dark-mode .exam-card p { color: var(--text-muted); }
.exam-card ul { padding-left: 1.2rem; }
.exam-card li { margin-bottom: 6px; line-height: 1.5; font-size: 0.9rem; color: #444; }
body.dark-mode .exam-card li { color: var(--text-muted); }
.exam-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.cta-section { text-align: center; padding: 60px 7vw; background: transparent; }
.cta-section h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; margin-bottom: 12px; }
.cta-section p { color: var(--text-muted); margin-bottom: 24px; }

/* ===== QUIZ PAGE ===== */
.quiz-container { max-width: 720px; margin: 0 auto; }
.quiz-subject-selector { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; justify-content: center; }
.subject-btn { padding: 10px 20px; border-radius: 10px; border: 2px solid var(--card-border); background: transparent; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.subject-btn:hover { border-color: var(--gold); color: var(--gold); }
.subject-btn.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.quiz-header { text-align: center; margin-bottom: 24px; }
.quiz-header h2 { font-size: 1.3rem; }
.quiz-header p { color: var(--text-muted); font-size: 0.9rem; }
.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.quiz-progress-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: var(--gold); border-radius: 4px; transition: width 0.3s ease; }
.quiz-progress-text { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.quiz-question { background: var(--card-bg); border-radius: 18px; padding: 32px; border: 3px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.3); margin-bottom: 20px; }
.quiz-question h3 { color: var(--navy); font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; line-height: 1.5; }
body.dark-mode .quiz-question h3 { color: var(--text-main); }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option { padding: 14px 18px; border-radius: 12px; border: 2px solid var(--card-border); background: rgba(255,255,255,0.02); color: #333; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; text-align: left; }
body.dark-mode .quiz-option { color: var(--text-main); }
.quiz-option:hover { border-color: var(--gold); }
.quiz-option.selected { border-color: var(--btn-primary); background: rgba(27,68,155,0.1); }
body.dark-mode .quiz-option.selected { border-color: var(--gold); background: rgba(212,175,55,0.1); }
.quiz-option.correct { border-color: var(--success) !important; background: rgba(34,197,94,0.1) !important; }
.quiz-option.wrong { border-color: var(--error) !important; background: rgba(239,68,68,0.1) !important; }
.quiz-option.disabled { cursor: default; opacity: 0.7; }
.quiz-option.disabled:hover { border-color: var(--card-border); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.quiz-score { text-align: center; padding: 32px; }
.quiz-score h2 { font-size: 1.5rem; margin-bottom: 12px; color: var(--gold); }
.quiz-score p { color: var(--text-muted); margin-bottom: 8px; }
.quiz-score-streak { display: flex; gap: 24px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.score-item { text-align: center; background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.2); border-radius: 10px; padding: 0.75rem 1.25rem; }
.score-item .score-value { font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.score-item .score-label { font-size: 0.7rem; color: var(--text-muted); }
.quiz-weakness { background: var(--card-bg); border-radius: 12px; padding: 1.25rem; border: 1px solid var(--card-border); text-align: left; max-width: 500px; margin: 0 auto; color: #333; }
body.dark-mode .quiz-weakness { color: var(--text-main); }
.weakness-row { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--card-border); font-size: 0.85rem; }
.weakness-row:last-child { border-bottom: none; }
.weakness-row .weakness-label { color: var(--text-muted); }
.weakness-row .weakness-score { font-weight: 600; }
.weakness-row .weakness-score.high { color: var(--success); }
.weakness-row .weakness-score.med { color: var(--warning); }
.weakness-row .weakness-score.low { color: var(--error); }
.site-footer { text-align: center; font-size: 12px; color: var(--text-muted); padding: 16px 7vw 20px 7vw; border-top: 1px solid var(--card-border); background: var(--navy); margin-top: auto; }
body.dark-mode .site-footer { background: linear-gradient(135deg, rgba(17,29,51,0.95), rgba(10,22,40,0.98)); }
.site-footer a { color: var(--gold); }
.lang-switcher { position: fixed; top: 20px; right: 20px; background: var(--navy-soft); color: var(--gold); border: 2px solid var(--gold); padding: 10px 15px; border-radius: 25px; cursor: pointer; z-index: 1001; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(212,175,55,0.2); }
.lang-switcher:hover { transform: scale(1.05); background: rgba(212,175,55,0.15); }
body.dark-mode .lang-switcher { box-shadow: 0 2px 10px rgba(0,212,255,0.2); }
body.dark-mode .lang-switcher:hover { background: rgba(0,212,255,0.15); }
.lang-btn-en, .lang-btn-fr { display: none; }
[lang="en"] .lang-btn-fr { display: inline; } [lang="fr"] .lang-btn-en { display: inline; }
.hamburger-menu { position: fixed; top: 20px; left: 20px; width: 35px; height: 30px; cursor: pointer; z-index: 1001; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.3s ease; }
.hamburger-menu:hover { transform: scale(1.1); }
.hamburger-menu span { display: block; height: 4px; background: var(--gold); border-radius: 2px; }
.sidebar-menu { position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background: linear-gradient(180deg, var(--navy), var(--navy-soft)); box-shadow: 2px 0 15px rgba(0,0,0,0.5); transition: left 0.3s ease; z-index: 1000; overflow-y: auto; padding: 130px 20px 20px 20px; }
body.dark-mode .sidebar-menu { background: linear-gradient(180deg, rgba(10,22,40,0.98), rgba(15,31,56,0.98)); }
.sidebar-menu.active { left: 0; }
.sidebar-menu h3 { color: var(--gold); font-size: 1em; margin: 25px 0 15px 0; padding-bottom: 8px; border-bottom: 2px solid var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-menu a { display: block; color: var(--text-main); padding: 12px 15px; margin: 5px 0; border-radius: 8px; transition: all 0.3s ease; font-size: 1.05em; }
.sidebar-menu a:hover { background: rgba(212,175,55,0.15); transform: translateX(8px); color: var(--gold); }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.sidebar-overlay.active { opacity: 1; visibility: visible; }
@media (max-width: 768px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .main-nav { width: 100%; display: flex; justify-content: flex-start; flex-wrap: wrap; }
  .main-nav a { margin: 4px 16px 0 0; }
  .hero h1 { font-size: 24px; }
  .info-grid { grid-template-columns: 1fr; }
  .exams-grid { grid-template-columns: 1fr; }
  .quiz-question { padding: 20px; }
  .hamburger-menu { top: 15px; left: 15px; }
  .sidebar-menu { width: 85%; max-width: 300px; }
  .lang-switcher { top: auto; bottom: 80px; right: 20px; }
}

/* ===== DISCLAIMER OVERLAY ===== */
.disclaimer-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px) brightness(0.3);
  -webkit-backdrop-filter: blur(8px) brightness(0.3);
  background: rgba(10, 26, 47, 0.7);
  padding: 20px;
}
.disclaimer-modal {
  background: var(--bg);
  border: 3px solid var(--gold);
  border-radius: 24px;
  padding: 40px 36px;
  max-width: 640px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.disclaimer-modal h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1.3;
}
.disclaimer-modal .disclaimer-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}
.disclaimer-modal .disclaimer-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: left;
}
.disclaimer-modal .disclaimer-highlight {
  background: rgba(212, 175, 55, 0.12);
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  text-align: left;
  font-weight: 500;
}
.disclaimer-modal .disclaimer-highlight strong {
  color: var(--gold);
}
.disclaimer-modal .btn-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: var(--navy);
  transition: all 0.15s ease;
  margin-top: 8px;
}
.disclaimer-modal .btn-disclaimer:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}
body.dark-mode .disclaimer-modal {
  background: #0f1f38;
}
@media (max-width: 600px) {
  .disclaimer-modal { padding: 28px 20px; }
  .disclaimer-modal h2 { font-size: 1.3rem; }
}

/* ===== BILL 25 / PRIVACY BADGE ===== */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  margin-top: 8px;
}
.privacy-badge a {
  color: var(--gold);
  text-decoration: underline;
}
.privacy-badge a:hover { color: var(--gold-dark); }