/* =====================================================
   MISTER QUIZ — Design System
   ===================================================== */

:root {
  --primary:       #7B2FBE;
  --primary-light: #9B4FDE;
  --primary-pale:  #F3EAFF;
  --gold:          #F5A623;
  --gold-light:    #FFF3DC;
  --dark:          #1A0A2E;
  --dark-deeper:   #0D0519;
  --text:          #2D2D2D;
  --text-light:    #6B6B7B;
  --bg:            #FFFFFF;
  --bg-alt:        #F8F5FF;
  --border:        rgba(123, 47, 190, 0.15);
  --shadow:        rgba(123, 47, 190, 0.12);
  --success:       #2ECC71;
  --error:         #E74C3C;
  --radius:        10px;
  --radius-lg:     16px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   HEADER
   ===================================================== */

.site-header {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: -0.3px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.logo-text strong { color: var(--gold); }

.site-nav > ul {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.lang-switch a {
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  padding: 5px 12px;
}

.lang-switch a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* =====================================================
   HERO HOMEPAGE
   ===================================================== */

.hero {
  background: linear-gradient(135deg, var(--dark-deeper) 0%, var(--dark) 50%, #2D0A5E 100%);
  padding: 80px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(123,47,190,0.3) 0%, transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(245,166,35,0.15) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--gold); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* =====================================================
   GRILLE DE QUIZ
   ===================================================== */

.quiz-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1rem;
}

.section-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.section-title-link:hover {
  border-bottom-color: var(--primary);
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.quiz-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.quiz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
  text-decoration: none;
}

.quiz-card-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.quiz-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3) 100%);
}

.quiz-card-body {
  padding: 20px;
}

.quiz-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.quiz-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.quiz-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
}

.quiz-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.quiz-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =====================================================
   PAGE QUIZ
   ===================================================== */

.quiz-hero {
  background: linear-gradient(135deg, var(--dark-deeper) 0%, #2D0A5E 100%);
  padding: 50px 0 40px;
  text-align: center;
}

.quiz-hero .breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem;
}

.breadcrumb ol li { display: flex; align-items: center; gap: 8px; }
.breadcrumb ol li:not(:last-child)::after { content: '›'; color: rgba(255,255,255,0.4); }
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li:last-child span { color: rgba(255,255,255,0.9); }

.quiz-hero-eyebrow {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: var(--gold);
  border: 1px solid rgba(245,166,35,0.3);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.quiz-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 12px;
}

.quiz-hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 24px;
}

.quiz-hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quiz-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
}

/* =====================================================
   ZONE QUIZ INTERACTIVE
   ===================================================== */

.quiz-wrapper {
  max-width: 960px;
  margin: -20px auto 0;
  padding: 0 20px 60px;
  position: relative;
  z-index: 2;
}

.quiz-start-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  padding: 40px;
  text-align: center;
}

.quiz-start-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.quiz-start-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.quiz-start-card p {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.quiz-info-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.quiz-info-item {
  text-align: center;
}

.quiz-info-item strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
}

.quiz-info-item span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.btn-start {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(123,47,190,0.4);
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123,47,190,0.5);
}

/* Zone de jeu */

.quiz-game {
  display: none;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  overflow: hidden;
}

.quiz-game.active { display: block; }

.quiz-progress-bar-wrap {
  height: 6px;
  background: #eee;
  position: relative;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width 0.4s ease;
  width: 0%;
}

.quiz-header-info {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.quiz-question-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

.quiz-score-live {
  background: var(--primary-pale);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.quiz-question-body {
  padding: 32px 28px 24px;
}

.quiz-question-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 28px;
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
  font-family: 'Poppins', sans-serif;
  line-height: 1.4;
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-pale);
  transform: translateX(4px);
}

.quiz-option.correct {
  border-color: var(--success);
  background: #E8F8F1;
  color: #1A6B3F;
  font-weight: 600;
}

.quiz-option.wrong {
  border-color: var(--error);
  background: #FDECEA;
  color: #8B1A12;
}

.quiz-option:disabled { cursor: not-allowed; }

.quiz-option .option-letter {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: var(--border);
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 10px;
  color: var(--primary);
  vertical-align: middle;
  transition: background 0.2s, color 0.2s;
}

.quiz-option.correct .option-letter { background: var(--success); color: #fff; }
.quiz-option.wrong .option-letter { background: var(--error); color: #fff; }

.quiz-explanation {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--primary-pale);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--dark);
}

.quiz-explanation.visible { display: block; }

.quiz-footer {
  padding: 20px 28px;
  border-top: 1px solid #f0f0f0;
  text-align: right;
}

.btn-next {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s, transform 0.1s;
}

.btn-next.visible { display: inline-block; }
.btn-next:hover { background: var(--primary-light); transform: translateY(-1px); }

/* Résultats */

.quiz-result {
  display: none;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  padding: 50px 40px;
  text-align: center;
}

.quiz-result.active { display: block; }

.result-emoji {
  font-size: 5rem;
  margin-bottom: 16px;
  display: block;
}

.result-score-display {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.result-score-display span {
  font-size: 1.5rem;
  color: var(--text-light);
}

.result-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.result-message {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto 32px;
}

.result-bar-wrap {
  height: 12px;
  background: #eee;
  border-radius: 6px;
  max-width: 400px;
  margin: 0 auto 36px;
  overflow: hidden;
}

.result-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 6px;
  transition: width 1s ease;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.result-share {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.result-share-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.result-share-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.share-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.share-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.share-wa   { background: #25D366; color: #fff; }
.share-msn  { background: #0099FF; color: #fff; }
.share-ml   { background: #6B7280; color: #fff; }
.share-copy { background: var(--primary); color: #fff; border: none; cursor: pointer; font-family: inherit; transition: background 0.2s, opacity 0.2s, transform 0.15s; }

.btn-retry {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(123,47,190,0.3);
}

.btn-retry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123,47,190,0.4);
}

.btn-home-quiz {
  background: var(--bg-alt);
  color: var(--primary);
  border: 2px solid var(--border);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: border-color 0.2s;
  display: inline-block;
}

.btn-home-quiz:hover {
  border-color: var(--primary);
  text-decoration: none;
}

/* =====================================================
   SECTION DESCRIPTION (sous le quiz)
   ===================================================== */

.quiz-desc-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.quiz-desc-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 14px;
  margin-top: 40px;
}

.quiz-desc-section p {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.quiz-desc-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.quiz-desc-section ul li {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--text);
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .site-logo {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.site-footer h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}

.footer-links ul li,
.footer-legal ul li,
.footer-col ul li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-legal a,
.footer-col a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-col a:hover {
  color: var(--gold);
}

.footer-inner-wide {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer-bottom {
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: rgba(255,255,255,0.6);
}

@media (max-width: 600px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =====================================================
   PAGE 404
   ===================================================== */

.error-404 {
  padding: 80px 20px;
  text-align: center;
}

.error-404-inner {
  max-width: 560px;
  margin: 0 auto;
}

.error-code {
  display: block;
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
}

.error-404 h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.error-404 p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.btn-home-404 {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 48px;
}

.error-suggestions h2 {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
}

.error-suggestions ul {
  list-style: none;
  padding: 0;
}

.error-suggestions li { margin-bottom: 8px; }
.error-suggestions a { color: var(--primary); text-decoration: underline; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner-wide { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .burger { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark-deeper);
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .site-nav.open { display: block; }

  .site-nav > ul { flex-direction: column; }
  .site-nav > ul > li > a { display: block; padding: 12px 0; }

  .hero { padding: 50px 0 60px; }
  .hero-stats { gap: 24px; }

  .quiz-start-card { padding: 28px 20px; }
  .quiz-question-body { padding: 24px 20px 16px; }
  .quiz-footer { padding: 16px 20px; }
  .quiz-header-info { padding: 16px 20px; }

  .quiz-result { padding: 36px 24px; }

  .footer-inner { grid-template-columns: 1fr; }

  .result-actions { flex-direction: column; align-items: center; }

  .quiz-hero-badges { gap: 8px; }

  .nav-dropdown { display: none !important; }
  .nav-has-dropdown > a::after { display: none; }
}

/* =====================================================
   DROPDOWN NAVIGATION
   ===================================================== */

.nav-has-dropdown {
  position: relative;
}

.nav-has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.6;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--dark-deeper);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 8px 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 9px 16px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  border-radius: 0;
}

.nav-dropdown li a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--gold);
}

/* =====================================================
   SECTION ALT (fond légèrement coloré)
   ===================================================== */

.quiz-section-alt {
  background: var(--bg-alt);
}

/* =====================================================
   LIENS "VOIR AUSSI" dans quiz-desc-section
   ===================================================== */

.quiz-desc-section ul li a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.quiz-desc-section ul li a:hover {
  color: var(--primary-light);
}

/* =====================================================
   PERSONALITY QUIZ
   ===================================================== */

.quiz-option.personality-selected {
  border-color: var(--primary);
  background: var(--primary-pale);
  color: var(--primary);
  font-weight: 600;
}

.result-char-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.result-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 16px auto 28px;
  max-width: 480px;
}

.personality-trait {
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: 2rem;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* =====================================================
   QUIZ CARDS SIMPLIFIED (grilles des hubs)
   ===================================================== */

.quiz-card .quiz-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.quiz-card-badge {
  font-size: 2rem;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

.quiz-card .quiz-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.quiz-card .quiz-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.quiz-card-count {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
}

/* =====================================================
   DIFFICULTY CARDS (hub culture générale)
   ===================================================== */

.difficulty-section {
  padding: 56px 0 40px;
}

.difficulty-section .section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 36px;
}

.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.difficulty-card {
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  border: 1.5px solid;
}

.difficulty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.10);
  text-decoration: none;
  color: inherit;
}

.difficulty-card.easy   { background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%); border-color: #86EFAC; }
.difficulty-card.medium { background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%); border-color: #FCD34D; }
.difficulty-card.hard   { background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%); border-color: #FCA5A5; }

.difficulty-card-icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}

.difficulty-card-level {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.difficulty-card.easy   .difficulty-card-level { color: #15803D; }
.difficulty-card.medium .difficulty-card-level { color: #B45309; }
.difficulty-card.hard   .difficulty-card-level { color: #B91C1C; }

.difficulty-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.difficulty-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.difficulty-card-meta {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
}

.difficulty-card.easy   .difficulty-card-meta { color: #15803D; }
.difficulty-card.medium .difficulty-card-meta { color: #B45309; }
.difficulty-card.hard   .difficulty-card-meta { color: #B91C1C; }

.difficulty-card-cta {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  align-self: flex-start;
}

.difficulty-card.easy   .difficulty-card-cta { background: #16A34A; color: #fff; }
.difficulty-card.medium .difficulty-card-cta { background: #D97706; color: #fff; }
.difficulty-card.hard   .difficulty-card-cta { background: #DC2626; color: #fff; }

