/* ==========================================================================
   STYLE NÉON GIGS — SIMULATEUR EXAMEN BLANC ETG 2026
   Univers du Labo de Gigs : Obscurité douce, néons cyan #00f2fe et violet #7c3aed
   ========================================================================== */

:root {
  --gigs-bg: #060913;
  --gigs-card: #0b1428;
  --gigs-card-glass: rgba(11, 20, 40, 0.92);
  --gigs-cyan: #00f2fe;
  --gigs-cyan-glow: rgba(0, 242, 254, 0.45);
  --gigs-violet: #7c3aed;
  --gigs-violet-glow: rgba(124, 58, 237, 0.4);
  --gigs-success: #10b981;
  --gigs-success-glow: rgba(16, 185, 129, 0.4);
  --gigs-danger: #ef4444;
  --gigs-danger-glow: rgba(239, 68, 68, 0.4);
  --gigs-warning: #f59e0b;
  --gigs-warning-glow: rgba(245, 158, 11, 0.4);
  --gigs-border: rgba(0, 242, 254, 0.28);
  --gigs-text: #f8fafc;
  --gigs-text-muted: #94a3b8;
  --gigs-text-light: #cbd5e1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--gigs-bg);
  background-image: 
    radial-gradient(1000px 600px at 85% -10%, rgba(124, 58, 237, 0.25), transparent 60%),
    radial-gradient(800px 500px at 10% 30%, rgba(0, 242, 254, 0.15), transparent 60%),
    radial-gradient(900px 600px at 50% 100%, rgba(124, 58, 237, 0.18), transparent 60%);
  background-attachment: fixed;
  color: var(--gigs-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* --- NAVIGATION HAUT --- */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 242, 254, 0.2);
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gigs-cyan);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.top-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--gigs-cyan);
  transform: translateX(-2px);
}

.gigs-badge-top {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(124, 58, 237, 0.25));
  border: 1px solid var(--gigs-cyan);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.3);
}

/* --- EN-TÊTE PRINCIPAL --- */
header {
  text-align: center;
  margin-bottom: 24px;
}

header h1 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 242, 254, 0.6), 0 0 30px rgba(124, 58, 237, 0.4);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

header p {
  font-size: 14px;
  color: var(--gigs-text-muted);
  line-height: 1.5;
}

/* --- BARRE DE PROGRESSION --- */
.progress-wrap {
  background: #0f172a;
  border-radius: 999px;
  height: 12px;
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15) inset;
  display: none;
}

.progress-bar {
  background: linear-gradient(90deg, #00cfe0, #7c3aed);
  height: 100%;
  width: 0%;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.7);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- CARTE PRINCIPALE --- */
.card {
  background: var(--gigs-card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.15);
  border: 1px solid var(--gigs-border);
  margin-bottom: 24px;
}

/* --- ÉCRAN DE DÉPART (WELCOME) --- */
.welcome-card {
  text-align: center;
  padding: 36px 28px;
}

.badge-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(124, 58, 237, 0.3));
  border: 1px solid var(--gigs-cyan);
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

.welcome-title {
  font-size: 28px;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 0 16px rgba(0, 242, 254, 0.6);
}

.welcome-lead {
  color: var(--gigs-text-light);
  font-size: 16px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 24px;
}

.recap-box {
  background: #091024;
  border-radius: 14px;
  padding: 20px 22px;
  text-align: left;
  margin: 24px 0;
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.08) inset;
}

.recap-box h4 {
  color: var(--gigs-cyan);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recap-box ul {
  padding-left: 20px;
  line-height: 1.7;
  font-size: 14px;
  color: var(--gigs-text-light);
}

.recap-box li strong {
  color: #ffffff;
}

.recap-box code {
  background: #15234a;
  color: var(--gigs-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* --- ÉCRAN DE QUESTION --- */
.q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.q-theme {
  font-size: 12px;
  color: var(--gigs-cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #0b1f3d;
  border: 1px solid rgba(0, 242, 254, 0.4);
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.q-count {
  font-size: 14px;
  color: var(--gigs-text-muted);
  font-weight: 700;
}

.badge-single {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid var(--gigs-success);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.badge-multi {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid var(--gigs-warning);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.q-title {
  font-size: 20px;
  line-height: 1.55;
  margin-bottom: 24px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* --- OPTIONS DE RÉPONSE --- */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.option-btn {
  background: #0d1830;
  border: 1.5px solid rgba(0, 242, 254, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  color: var(--gigs-text);
  font-size: 15px;
  line-height: 1.45;
  width: 100%;
}

.option-btn:hover {
  background: #132448;
  border-color: var(--gigs-cyan);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
  transform: translateY(-1px);
}

.option-letter {
  background: #152446;
  color: var(--gigs-cyan);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.15);
  transition: all 0.2s;
}

.option-btn.selected {
  border-color: var(--gigs-cyan);
  background: rgba(0, 242, 254, 0.12);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
}

.option-btn.selected .option-letter {
  background: var(--gigs-cyan);
  color: #060913;
  font-weight: 900;
  box-shadow: 0 0 14px var(--gigs-cyan);
}

.option-btn.correct {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: var(--gigs-success) !important;
  box-shadow: 0 0 20px var(--gigs-success-glow) !important;
}

.option-btn.correct .option-letter {
  background: var(--gigs-success) !important;
  color: #ffffff !important;
  border-color: var(--gigs-success) !important;
  box-shadow: 0 0 12px var(--gigs-success) !important;
}

.option-btn.wrong {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: var(--gigs-danger) !important;
  box-shadow: 0 0 20px var(--gigs-danger-glow) !important;
}

.option-btn.wrong .option-letter {
  background: var(--gigs-danger) !important;
  color: #ffffff !important;
  border-color: var(--gigs-danger) !important;
  box-shadow: 0 0 12px var(--gigs-danger) !important;
}

/* --- BOUTON D'ACTION --- */
.btn-submit {
  background: linear-gradient(135deg, #00cfe0 0%, #7c3aed 100%);
  color: #ffffff;
  border: 1px solid var(--gigs-cyan);
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #00f2fe 0%, #a855f7 100%);
  border-color: #ffffff;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.75);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.1);
  background: #131c33;
}

/* --- BOÎTE D'EXPLICATION PÉDAGOGIQUE --- */
.explanation {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.6;
  display: none;
}

.explanation.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.explanation.correct {
  background: rgba(16, 185, 129, 0.12);
  border-left: 5px solid var(--gigs-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.18);
}

.explanation.wrong {
  background: rgba(239, 68, 68, 0.12);
  border-left: 5px solid var(--gigs-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.18);
}

.explanation h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.explanation p {
  color: var(--gigs-text-light);
}

.explanation strong {
  color: #ffffff;
}

/* --- ÉCRAN DE RÉSULTAT (SCORE) --- */
.result-card {
  text-align: center;
  padding: 40px 24px;
  display: none;
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid var(--gigs-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 44px;
  font-weight: 900;
  color: var(--gigs-cyan);
  box-shadow: 0 0 32px rgba(0, 242, 254, 0.5), inset 0 0 20px rgba(0, 242, 254, 0.2);
}

.score-circle small {
  font-size: 15px;
  color: var(--gigs-text-muted);
  font-weight: 600;
}

.result-verdict {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.result-msg {
  color: var(--gigs-text-light);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.review-item {
  text-align: left;
  background: #091124;
  padding: 18px 20px;
  border-radius: 12px;
  margin-top: 14px;
  border-left: 5px solid var(--gigs-success);
  border: 1px solid rgba(0, 242, 254, 0.15);
}

.review-item.has-error {
  border-left-color: var(--gigs-danger);
}

.review-item h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.review-item p {
  font-size: 14px;
  color: var(--gigs-text-muted);
  line-height: 1.5;
}

/* --- PIED DE PAGE LÉGAL STRICT (KVH) --- */
.site-footer {
  margin-top: 48px;
  padding: 24px 0 12px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid rgba(0, 242, 254, 0.2);
  width: 100%;
  max-width: 820px;
}

.site-footer a {
  color: var(--gigs-cyan);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  body {
    padding: 16px 12px 36px;
  }
  .card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  header h1 {
    font-size: 22px;
  }
  .welcome-title {
    font-size: 23px;
  }
  .q-title {
    font-size: 18px;
  }
  .option-btn {
    padding: 12px 14px;
    font-size: 14px;
    gap: 12px;
  }
  .option-letter {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* ==========================================================================
   Ajouts octobre 2026 : bouton « Explique-moi mon erreur », fin de test, mobile
   ========================================================================== */
.btn-sticky { margin-top: 18px; position: sticky; bottom: 12px; z-index: 5; }
.option-btn { min-height: 44px; }
.btn-explain {
  display: block; width: 100%; margin-top: 14px; min-height: 44px; padding: 12px 16px;
  background: rgba(124, 58, 237, 0.18); color: #e2e8f0; border: 1px solid var(--gigs-violet);
  border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; text-align: center;
}
.btn-explain:hover { background: rgba(124, 58, 237, 0.32); }
.disclaimer { margin-top: 16px; font-size: 13px; line-height: 1.55; color: #94a3b8; }
.disclaimer a, .cta-box a { color: var(--gigs-cyan); }
#themeWrap ul { margin: 8px 0 0 18px; }
#themeWrap:empty { display: none; }
.cta-box { margin: 22px 0; display: grid; gap: 10px; text-align: left; }
.cta-box h4 { color: var(--gigs-cyan); font-size: 18px; }
.cta-link { display: block; text-align: center; text-decoration: none; }
a.btn-share {
  display: block; min-height: 44px; padding: 12px 16px; border: 1px solid var(--gigs-border);
  border-radius: 10px; color: #e2e8f0; text-decoration: none; font-weight: 600;
}
a.btn-share:hover { border-color: var(--gigs-cyan); }
@media (max-width: 640px) {
  .btn-submit { padding: 14px 18px; font-size: 16px; }
  .top-nav { flex-wrap: wrap; gap: 8px; }
}

.q-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin: 4px 0 16px; border: 1px solid var(--gigs-border); }
.q-image[hidden] { display: none; }

/* Series choice, resume button and the « test sur mesure » box on the start screen. */
.series-choice { display: grid; gap: 12px; margin-top: 8px; }
.series-choice .btn-submit, #resumeWrap .btn-submit { margin: 0; }
#resumeWrap { margin-bottom: 14px; }
.btn-alt { background: transparent; border: 2px solid var(--gigs-cyan); color: var(--gigs-cyan); box-shadow: none; }
.btn-alt:hover:not(:disabled) { color: #ffffff; }
.custom-test { margin-top: 20px; padding: 16px; border: 1px dashed rgba(0, 242, 254, 0.45); border-radius: 12px; text-align: left; }
.custom-test p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.custom-test .btn-share { margin: 0; }
/* The « Valider » button sticks to the bottom only once an answer is picked, so it never hides the question. */
.btn-sticky:disabled { position: static; }
.welcome-hero { display: block; width: 100%; height: auto; border-radius: 12px; margin: 0 0 18px; border: 1px solid rgba(0, 242, 254, 0.3); }
