/* ===================================================
   RÉVOLUTION INDUSTRIELLE – CM2
   Design : livre illustré joyeux pour 9-11 ans
   Palette : crème + teal + corail + jaune soleil
   =================================================== */

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

:root {
  --c-cream:      #fff8e7;
  --c-cream-2:    #fceec9;
  --c-teal:       #1e6f8c;
  --c-teal-dark:  #134a5f;
  --c-coral:      #ff6b6b;
  --c-coral-soft: #ffd3d3;
  --c-yellow:     #ffd23f;
  --c-yellow-soft:#fff0b3;
  --c-mint:       #7fd8be;
  --c-lilac:      #b8a1d9;
  --c-ink:        #2a2438;
  --c-ink-soft:   #5a4e6d;

  --c-primary:    var(--c-teal);
  --c-accent:     var(--c-yellow);
  --c-secondary:  var(--c-coral);

  --font-title:  'Baloo 2', system-ui, sans-serif;
  --font-body:   'Nunito', system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 42px;

  --shadow-sm:    0 3px 0 rgba(30, 75, 95, .15);
  --shadow-md:    0 6px 0 rgba(30, 75, 95, .18);
  --shadow-lg:    0 10px 0 rgba(30, 75, 95, .20);
  --shadow-coral: 0 6px 0 rgba(255, 107, 107, .35);
  --shadow-soft:  0 8px 30px rgba(30, 75, 95, .12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--c-ink);
  background: var(--c-cream);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 210, 63, .12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 107, .10) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Motif à pois très discret */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(30, 75, 95, .06) 1px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* ---- Container ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  background: linear-gradient(135deg, #1e6f8c 0%, #27829b 50%, #3aa0b8 100%);
  color: #fff;
  padding: 60px 20px 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* "Nuages" décoratifs */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 400px 80px at 15% 100%, rgba(255, 255, 255, .15), transparent 70%),
    radial-gradient(ellipse 500px 100px at 85% 100%, rgba(255, 255, 255, .15), transparent 70%),
    radial-gradient(circle 8px at 20% 30%, var(--c-yellow) 0%, transparent 100%),
    radial-gradient(circle 6px at 70% 20%, var(--c-coral) 0%, transparent 100%),
    radial-gradient(circle 10px at 85% 55%, var(--c-yellow-soft) 0%, transparent 100%),
    radial-gradient(circle 5px at 30% 70%, var(--c-mint) 0%, transparent 100%);
}

/* Vague en bas du header */
.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--c-cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 Q300,0 600,40 T1200,40 L1200,80 L0,80 Z' fill='black'/%3E%3C/svg%3E") no-repeat center/100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 Q300,0 600,40 T1200,40 L1200,80 L0,80 Z' fill='black'/%3E%3C/svg%3E") no-repeat center/100% 100%;
}

.header-inner { position: relative; z-index: 2; }

.header-badge {
  display: inline-block;
  background: var(--c-yellow);
  color: var(--c-teal-dark);
  border-radius: 50px;
  padding: 8px 24px;
  font-size: 1rem;
  font-family: var(--font-title);
  font-weight: 700;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .15);
  transform: rotate(-2deg);
  margin-bottom: 18px;
}

.site-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .12);
}

.site-subtitle {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  max-width: 700px;
  margin: 0 auto 32px;
  opacity: .95;
  font-weight: 600;
}

/* ---- Navigation ---- */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, .15);
  border: 2px solid rgba(255, 255, 255, .3);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: all .2s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--c-yellow);
  color: var(--c-teal-dark);
  border-color: var(--c-yellow);
  transform: translateY(-2px);
}

/* =========================================
   SECTIONS
   ========================================= */
.section { padding: 80px 0; position: relative; }

.section-intro       { background: transparent; }
.section.section-conditions   { background: var(--c-coral-soft); }
.section.section-enfants      { background: var(--c-yellow-soft); }
.section.section-lois         { background: #e6f5f0; }
.section.section-comparaison  { background: #f3eaff; }
.section.section-germinal     { background: linear-gradient(135deg, #1a2640 0%, #2b3d60 100%); color: #fff; }
.section.section-quiz         { background: var(--c-yellow-soft); }
.section.section-plus         { background: #e6f5f0; }

/* Séparateurs ondulés */
.section:not(.section-intro)::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,20 Q300,40 600,20 T1200,20 L1200,0 L0,0 Z' fill='black'/%3E%3C/svg%3E") no-repeat center/100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,20 Q300,40 600,20 T1200,20 L1200,0 L0,0 Z' fill='black'/%3E%3C/svg%3E") no-repeat center/100% 100%;
  transform: translateY(-100%);
  z-index: 2;
}

/* ---- Titres ---- */
.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  color: var(--c-teal-dark);
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section.section-germinal .section-title { color: var(--c-yellow); }

.emoji-title {
  display: inline-block;
  font-size: 1.2em;
  margin-right: 8px;
  animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-8deg); }
  75%      { transform: rotate(8deg); }
}

.subsection-title {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--c-coral);
  margin: 32px 0 18px;
  text-align: center;
}

.section-intro-text {
  font-size: 1.1rem;
  color: var(--c-ink-soft);
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  font-weight: 600;
}

.lead-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 16px;
}

/* =========================================
   INTRO
   ========================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.intro-text p { margin-bottom: 14px; }

.fun-fact-box {
  background: #fff;
  border: 3px dashed var(--c-coral);
  border-radius: var(--r-md);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 20px;
  box-shadow: var(--shadow-soft);
}

.fun-fact-box.small { padding: 14px 16px; }
.fun-fact-icon { font-size: 2rem; flex-shrink: 0; }
.fun-fact-box p { margin: 0 !important; font-size: .98rem; }

.intro-figure {
  margin-top: 22px;
  text-align: center;
}
.intro-img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--r-md);
  border: 4px solid #fff;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.intro-figure figcaption {
  margin-top: 10px;
  font-size: .9rem;
  color: var(--c-ink-soft);
  font-style: italic;
}

/* Mini-frise */
.timeline-mini {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--c-yellow);
}

.timeline-mini-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 2px dashed var(--c-cream-2);
}
.timeline-mini-item:last-child { border-bottom: none; }

.tl-year {
  background: var(--c-teal);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
}

.timeline-mini-item.highlight .tl-year {
  background: var(--c-coral);
}

.tl-event { font-size: .95rem; font-weight: 600; }

/* =========================================
   CARTES (Conditions)
   ========================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
  border-top: 6px solid var(--c-teal);
  position: relative;
}

.card:hover {
  transform: translateY(-4px) rotate(-.5deg);
  box-shadow: var(--shadow-lg);
}

.card-danger  { border-top-color: var(--c-coral); }
.card-warning { border-top-color: var(--c-yellow); }
.card-dark    { border-top-color: var(--c-ink); }
.card-info    { border-top-color: var(--c-mint); }

.card-icon {
  font-size: 2.6rem;
  margin-bottom: 10px;
  display: inline-block;
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-teal-dark);
  margin-bottom: 10px;
}

.card p { margin-bottom: 14px; font-size: 1rem; }

.card-compare {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag-before, .tag-after {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
}
.tag-before { background: var(--c-coral-soft); color: #9c2626; }
.tag-after  { background: #d7f5e9;            color: #1a6b4a; }

/* Barres de salaire */
.salary-bars { margin-top: 14px; }
.salary-bar {
  display: grid;
  grid-template-columns: 70px 1fr 95px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.salary-label { font-weight: 700; font-size: .92rem; }

.bar-track {
  height: 20px;
  background: var(--c-cream-2);
  border-radius: 50px;
  overflow: hidden;
  border: 2px solid #fff;
}
.bar-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 1.2s cubic-bezier(.3, 1.3, .4, 1);
}
.bar-man   { background: var(--c-teal); }
.bar-woman { background: var(--c-coral); }
.bar-child { background: var(--c-yellow); }

.salary-amount { font-size: .82rem; font-weight: 700; color: var(--c-ink-soft); }

.danger-list { list-style: none; margin-top: 10px; }
.danger-list li {
  padding: 6px 0;
  font-size: .95rem;
  display: flex;
  gap: 8px;
  align-items: center;
}
.danger-icon { color: var(--c-coral); }

/* Image historique */
.historical-image-block {
  margin: 40px auto 0;
  max-width: 800px;
}
.historical-figure {
  background: #fff;
  padding: 14px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  transform: rotate(.8deg);
}
.historical-img {
  width: 100%;
  border-radius: var(--r-sm);
  display: block;
}
.historical-figure figcaption {
  margin-top: 12px;
  font-size: .92rem;
  color: var(--c-ink-soft);
  text-align: center;
  font-style: italic;
}

/* =========================================
   ENFANTS
   ========================================= */
.enfants-intro { text-align: center; margin-bottom: 36px; }

.day-in-life {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--c-coral);
  margin-bottom: 40px;
}

.timeline-day {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.day-event {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: flex-start;
  padding: 14px;
  background: var(--c-yellow-soft);
  border-radius: var(--r-md);
  border-left: 6px solid var(--c-coral);
}

.day-event.day-school {
  background: #d7f5e9;
  border-left-color: var(--c-mint);
}

.day-time {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-teal-dark);
  text-align: center;
}

.day-content strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--c-coral);
}
.day-event.day-school .day-content strong { color: #1a6b4a; }

.day-content p { font-size: .95rem; margin: 0; }

/* Sectors */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.sector-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 0 0 18px;
  box-shadow: var(--shadow-md);
  text-align: center;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  border: 3px solid var(--c-yellow);
}
.sector-card:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: var(--shadow-lg);
}

.sector-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--c-yellow);
}

.sector-emoji {
  font-size: 2.5rem;
  margin: 14px 0 6px;
  display: inline-block;
}

.sector-card h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--c-teal-dark);
  margin: 0 12px 8px;
}
.sector-card p { font-size: .88rem; margin: 0 14px; }

/* Empathie */
.empathy-block {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  margin-top: 40px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--c-lilac);
  text-align: center;
}

.thought-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.thought-btn {
  background: var(--c-lilac);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .15);
  transition: all .15s;
}

.thought-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .18);
}
.thought-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

.thought-response {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--c-yellow-soft);
  border-radius: var(--r-md);
  border-left: 5px solid var(--c-coral);
  font-size: 1rem;
  text-align: left;
  line-height: 1.7;
  animation: popIn .4s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

.hidden { display: none !important; }

/* =========================================
   LOIS
   ========================================= */
.laws-timeline {
  position: relative;
  max-width: 860px;
  margin: 40px auto 0;
  padding-left: 40px;
}

.laws-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 20px;
  bottom: 20px;
  width: 4px;
  background: var(--c-teal);
  border-radius: 4px;
}

.law-item {
  position: relative;
  margin-bottom: 28px;
}

.law-year-badge {
  position: absolute;
  left: -40px;
  top: 10px;
  width: 64px;
  height: 64px;
  background: var(--c-yellow);
  border: 4px solid var(--c-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .88rem;
  color: var(--c-teal-dark);
  box-shadow: var(--shadow-md);
}

.law-modern .law-year-badge { background: var(--c-coral); color: #fff; }

.law-content {
  background: #fff;
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-left: 50px;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--c-teal);
}

.law-modern .law-content { border-left-color: var(--c-coral); }

.law-content h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--c-teal-dark);
  margin-bottom: 8px;
}
.law-content p { margin-bottom: 10px; font-size: 1rem; }

.law-impact {
  background: var(--c-yellow-soft);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 600;
  color: var(--c-ink-soft);
}
.law-impact i { color: var(--c-coral); margin-right: 6px; }

.law-with-portrait {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.law-portrait {
  width: 110px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 3px solid var(--c-yellow);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

/* =========================================
   COMPARAISON
   ========================================= */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  perspective: 1000px;
}

.compare-card {
  position: relative;
  height: 240px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4, .2, .2, 1);
}

.compare-card.flipped { transform: rotateY(180deg); }

.compare-face {
  position: absolute;
  inset: 0;
  padding: 24px;
  border-radius: var(--r-md);
  backface-visibility: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.compare-before {
  background: linear-gradient(135deg, #3d4659 0%, #2a2f3d 100%);
  color: #fff;
  border: 3px solid var(--c-coral);
}
.compare-after {
  background: linear-gradient(135deg, #a2e4bd 0%, #7fd8be 100%);
  color: var(--c-teal-dark);
  border: 3px solid var(--c-mint);
  transform: rotateY(180deg);
}

.compare-label {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 8px;
}
.compare-icon { font-size: 2.2rem; margin-bottom: 8px; }
.compare-face h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.compare-stat { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.compare-detail { font-size: .82rem; opacity: .85; font-weight: 600; }

.compare-hint {
  text-align: center;
  margin-top: 28px;
  font-weight: 700;
  color: var(--c-coral);
  font-size: 1rem;
  animation: bounce 2s ease-in-out infinite;
}

/* =========================================
   GERMINAL
   ========================================= */
.section.section-germinal {
  background: linear-gradient(135deg, #1a2640 0%, #2b3d60 100%);
  color: #fff;
  position: relative;
}

/* Force la couleur du texte dans Germinal (fond sombre) */
.section.section-germinal,
.section.section-germinal p,
.section.section-germinal .germinal-text,
.section.section-germinal .germinal-text p,
.section.section-germinal .zola-portrait-row p,
.section.section-germinal .zola-quote p,
.section.section-germinal .zola-quote footer,
.section.section-germinal .zola-quote cite,
.section.section-germinal .img-caption {
  color: #fff !important;
}

.germinal-block {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 44px;
  align-items: center;
}

.germinal-text p { line-height: 1.8; margin-bottom: 14px; opacity: .95; }

.zola-portrait-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.zola-portrait {
  width: 110px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 3px solid var(--c-yellow);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  flex-shrink: 0;
  transform: rotate(-2deg);
}

.zola-quote {
  background: rgba(255, 255, 255, .08);
  border-left: 5px solid var(--c-yellow);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  margin: 22px 0;
}
.zola-quote p {
  font-style: italic;
  font-size: 1.08rem;
  margin-bottom: 10px !important;
}
.zola-quote footer { font-size: .85rem; opacity: .75; }

.germinal-img-wrap { text-align: center; }
.germinal-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 4px solid var(--c-yellow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  transform: rotate(1.5deg);
}
.img-caption {
  font-size: .85rem;
  opacity: .75;
  margin-top: 10px;
  font-style: italic;
}

/* =========================================
   QUIZ
   ========================================= */
.quiz-container {
  max-width: 760px;
  margin: 30px auto 0;
  background: #fff;
  padding: 36px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--c-yellow);
}

.quiz-progress {
  height: 16px;
  background: var(--c-cream-2);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 10px;
}
.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-yellow) 0%, var(--c-coral) 100%);
  border-radius: 50px;
  transition: width .5s ease;
}

.quiz-counter {
  text-align: right;
  font-size: .9rem;
  font-weight: 700;
  color: var(--c-ink-soft);
  margin-bottom: 24px;
}

.quiz-question {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-teal-dark);
  margin-bottom: 24px;
  text-align: center;
}

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

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--c-cream);
  border: 3px solid var(--c-cream-2);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--c-ink);
  cursor: pointer;
  text-align: left;
  transition: all .15s;
}
.quiz-option:hover:not(:disabled) {
  background: var(--c-yellow-soft);
  border-color: var(--c-yellow);
  transform: translateX(4px);
}

.quiz-option-icon { font-size: 1.6rem; flex-shrink: 0; }

.quiz-option.correct {
  background: #d7f5e9;
  border-color: var(--c-mint);
  color: #1a6b4a;
  animation: pulse .6s ease;
}
.quiz-option.wrong {
  background: var(--c-coral-soft);
  border-color: var(--c-coral);
  color: #9c2626;
}
.quiz-option:disabled { cursor: default; opacity: .85; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

.quiz-feedback {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.6;
}
.quiz-feedback.correct-fb {
  background: #d7f5e9;
  border: 2px solid var(--c-mint);
  color: #1a6b4a;
}
.quiz-feedback.wrong-fb {
  background: var(--c-coral-soft);
  border: 2px solid var(--c-coral);
  color: #9c2626;
}

.btn-next, .btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 32px;
  background: var(--c-coral);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .18);
  transition: all .15s;
}
.btn-next:hover, .btn-restart:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(0, 0, 0, .2);
}
.btn-next:active, .btn-restart:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}

.quiz-result {
  text-align: center;
  padding: 30px 20px;
}
.result-emoji {
  font-size: 5rem;
  animation: bounce 1.5s ease-in-out infinite;
}
.quiz-result h3 {
  font-family: var(--font-title);
  font-size: 1.7rem;
  color: var(--c-teal-dark);
  margin: 14px 0 10px;
}
.quiz-result p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  max-width: 500px;
  margin: 0 auto;
}

/* =========================================
   POUR ALLER PLUS LOIN
   ========================================= */
.plus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.plus-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform .25s, box-shadow .25s;
  border-bottom: 6px solid var(--c-teal);
}
.plus-card:nth-child(1) { border-bottom-color: var(--c-coral); }
.plus-card:nth-child(2) { border-bottom-color: var(--c-yellow); }
.plus-card:nth-child(3) { border-bottom-color: var(--c-mint); }
.plus-card:nth-child(4) { border-bottom-color: var(--c-lilac); }

.plus-card:hover {
  transform: translateY(-5px) rotate(-.5deg);
  box-shadow: var(--shadow-lg);
}

.plus-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  animation: wobble 4s ease-in-out infinite;
}
.plus-card h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--c-teal-dark);
  margin-bottom: 10px;
}
.plus-card p { font-size: .95rem; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--c-teal-dark);
  color: #fff;
  padding: 36px 20px;
  text-align: center;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--c-teal-dark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,20 Q300,40 600,20 T1200,20 L1200,0 L0,0 Z' fill='black'/%3E%3C/svg%3E") no-repeat center/100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,20 Q300,40 600,20 T1200,20 L1200,0 L0,0 Z' fill='black'/%3E%3C/svg%3E") no-repeat center/100% 100%;
  transform: translateY(-100%);
}

.footer-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.footer-sub { font-size: .88rem; opacity: .75; }

/* =========================================
   STRONG
   ========================================= */
strong {
  color: var(--c-coral);
  font-weight: 800;
}
.section.section-germinal strong { color: var(--c-yellow); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .germinal-block { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  body { font-size: 1.05rem; }

  .site-header { padding: 40px 16px 120px; }

  .day-event { grid-template-columns: 1fr; gap: 4px; }
  .day-time { text-align: left; font-size: 1rem; }

  .laws-timeline { padding-left: 30px; }
  .law-year-badge {
    position: static;
    display: inline-flex;
    width: 54px; height: 54px;
    margin-bottom: 10px;
  }
  .law-content { margin-left: 0; }

  .law-with-portrait { flex-direction: column; align-items: center; text-align: center; }
  .law-portrait { width: 120px; height: 150px; }

  .zola-portrait-row { flex-direction: column; align-items: center; text-align: center; }

  .quiz-container { padding: 24px 20px; }
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section { animation: fadeInUp .6s ease both; }

/* =========================================
   QUICK WINS : progress bar + bouton haut
   ========================================= */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 5px;
  background: linear-gradient(90deg, var(--c-yellow), var(--c-coral));
  z-index: 9999;
  transition: width .15s ease-out;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

#btn-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-coral);
  color: #fff;
  border: 3px solid #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.9);
  transition: all .25s ease;
  z-index: 9998;
}
#btn-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
#btn-top:hover {
  background: var(--c-teal-dark);
  transform: translateY(-3px) scale(1.05);
}

/* =========================================
   MODE IMPRESSION
   ========================================= */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }
  body::before, .site-header::before, .site-header::after,
  .section::before, .site-footer::before,
  #reading-progress, #btn-top, .main-nav,
  .thought-bubbles, .quiz-container,
  .compare-card { display: none !important; }

  .site-header {
    background: none !important;
    color: #000 !important;
    padding: 10px 0;
  }
  .site-title { color: #000; font-size: 24pt; }
  .site-subtitle { color: #333; }

  .section {
    page-break-inside: avoid;
    background: none !important;
    color: #000 !important;
    padding: 18px 0;
    box-shadow: none;
  }
  .section.section-germinal { background: none !important; color: #000 !important; }
  .section.section-germinal * { color: #000 !important; }

  .card, .sector-card, .law-content, .empathy-block, .day-in-life,
  .quiz-container, .plus-card, .historical-figure,
  .timeline-mini, .fun-fact-box {
    background: #fff !important;
    box-shadow: none !important;
    border: 1px solid #999 !important;
    transform: none !important;
    page-break-inside: avoid;
  }

  .historical-img, .germinal-img, .intro-img {
    max-height: 8cm;
    object-fit: contain;
  }

  a { color: #000; text-decoration: underline; }
  .section-title { color: #000 !important; }
}

/* =========================================
   GLOSSAIRE INTERACTIF
   ========================================= */
.glossary-term {
  border-bottom: 2px dotted var(--c-coral);
  cursor: help;
  padding: 0 1px;
  transition: background .15s;
  position: relative;
}
.glossary-term:hover,
.glossary-term:focus {
  background: var(--c-yellow-soft);
  outline: none;
  border-bottom-color: var(--c-teal-dark);
}

.section.section-germinal .glossary-term {
  border-bottom-color: var(--c-yellow);
  color: inherit;
}
.section.section-germinal .glossary-term:hover,
.section.section-germinal .glossary-term:focus {
  background: rgba(255,210,63,.2);
  border-bottom-color: var(--c-yellow);
}

.glossary-popup {
  position: absolute;
  z-index: 10000;
  max-width: 320px;
  background: #fff;
  border: 3px solid var(--c-yellow);
  border-radius: var(--r-md);
  padding: 18px 20px 14px;
  box-shadow: 0 12px 40px rgba(30, 75, 95, .25);
  opacity: 0;
  transform: translateY(-8px) scale(.95);
  transition: opacity .18s ease, transform .18s ease;
  font-family: var(--font-body);
  color: var(--c-ink);
}
.glossary-popup.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.glossary-popup strong {
  display: block;
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.glossary-popup p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
}
.glossary-close {
  position: absolute;
  top: 6px; right: 8px;
  background: none;
  border: none;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-ink-soft);
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}
.glossary-close:hover { color: var(--c-coral); }

@media print {
  .glossary-term { border-bottom: none; }
  .glossary-popup { display: none !important; }
}

/* =========================================
   TÉMOIGNAGES
   ========================================= */
.section.section-temoignages { background: #fff5e6; }

.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.temoignage-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px 22px 18px;
  box-shadow: var(--shadow-md);
  text-align: center;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border-top: 6px solid var(--c-coral);
  position: relative;
}
.temoignage-card:nth-child(2) { border-top-color: var(--c-teal); }
.temoignage-card:nth-child(3) { border-top-color: var(--c-yellow); }
.temoignage-card:nth-child(4) { border-top-color: var(--c-lilac); }

.temoignage-card:hover,
.temoignage-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.temoignage-avatar {
  font-size: 3.5rem;
  margin-bottom: 10px;
  display: inline-block;
  animation: bounce 2.5s ease-in-out infinite;
}

.temoignage-card h3 {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.temoignage-role {
  font-size: .92rem;
  color: var(--c-ink-soft);
  font-weight: 600;
  margin-bottom: 14px;
}

.temoignage-story {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease, margin-top .3s ease;
  opacity: 0;
  text-align: left;
}
.temoignage-story p {
  font-style: italic;
  font-size: .95rem;
  line-height: 1.65;
  background: var(--c-yellow-soft);
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border-left: 4px solid var(--c-coral);
  margin: 0;
}

.temoignage-card.open .temoignage-story {
  max-height: 500px;
  opacity: 1;
  margin-top: 8px;
}

.temoignage-toggle {
  display: inline-block;
  margin-top: 12px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--c-coral);
}
.temoignage-card.open .temoignage-toggle {
  color: var(--c-teal-dark);
}

/* =========================================
   JOURNÉE COMPARÉE
   ========================================= */
.section.section-ma-journee { background: #ffeede; }

.journee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 30px;
}

.journee-q {
  background: #fff;
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--c-coral);
}
.journee-q-label {
  font-weight: 700;
  color: var(--c-teal-dark);
  margin-bottom: 12px;
  font-size: 1rem;
}
.journee-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.journee-opt {
  padding: 10px 18px;
  background: var(--c-cream);
  border: 2px solid var(--c-cream-2);
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--c-teal-dark);
  cursor: pointer;
  font-size: 1rem;
  transition: all .15s;
}
.journee-opt:hover {
  background: var(--c-yellow-soft);
  border-color: var(--c-yellow);
}
.journee-opt.selected {
  background: var(--c-coral);
  color: #fff;
  border-color: var(--c-coral);
  transform: scale(1.05);
}

.journee-result { display: flex; flex-direction: column; gap: 16px; }

.journee-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-md);
  border-top: 6px solid var(--c-teal);
}
.journee-card-elle { border-top-color: var(--c-coral); }

.journee-card h3 {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.journee-card ul {
  list-style: none;
  padding: 0;
}
.journee-card li {
  padding: 6px 0;
  font-size: .98rem;
  border-bottom: 1px dashed var(--c-cream-2);
}
.journee-card li:last-child { border-bottom: none; }
.journee-card .placeholder {
  font-style: italic;
  color: var(--c-ink-soft);
  border-bottom: none;
}

.journee-fin {
  background: var(--c-yellow);
  color: var(--c-teal-dark);
  padding: 18px 22px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  border: 3px solid #fff;
  animation: popIn .4s ease;
}
.journee-fin p { margin-bottom: 8px; font-size: .98rem; }
.journee-fin p:last-child { margin-bottom: 0; }
.journee-fin-conclusion {
  margin-top: 12px !important;
  font-weight: 700;
  border-top: 2px dashed rgba(0,0,0,.15);
  padding-top: 10px;
}

@media (max-width: 800px) {
  .journee-grid { grid-template-columns: 1fr; }
}

/* =========================================
   MINI-JEU ORDRE DES LOIS
   ========================================= */
.lois-game {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px 28px;
  margin-top: 50px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--c-yellow);
}
.lois-game-intro {
  text-align: center;
  color: var(--c-ink-soft);
  font-weight: 600;
  margin-bottom: 20px;
}

.lois-game-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.lois-game-btn {
  padding: 16px 22px;
  background: var(--c-cream);
  border: 3px solid var(--c-cream-2);
  border-radius: var(--r-md);
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--c-teal-dark);
  cursor: pointer;
  font-size: 1rem;
  transition: all .2s ease;
  box-shadow: 0 4px 0 rgba(30, 75, 95, .12);
  min-width: 200px;
}
.lois-game-btn:hover:not(.done) {
  background: var(--c-yellow-soft);
  border-color: var(--c-yellow);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(30, 75, 95, .15);
}

.lois-game-btn.done {
  background: var(--c-mint);
  border-color: var(--c-mint);
  color: #1a4a3a;
  cursor: default;
  pointer-events: none;
}

.lois-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: #fff;
  color: var(--c-teal-dark);
  border-radius: 50%;
  font-size: .85rem;
  margin-right: 6px;
  font-weight: 800;
}

.lois-game-btn.wrong {
  background: var(--c-coral-soft);
  border-color: var(--c-coral);
  color: #9c2626;
  animation: shake .5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.lois-game-result {
  margin-top: 24px;
  padding: 24px;
  text-align: center;
  background: var(--c-yellow);
  border-radius: var(--r-md);
  border: 3px solid #fff;
  animation: popIn .4s ease;
}
.lois-game-result-emoji {
  font-size: 3.5rem;
  animation: bounce 1.5s ease-in-out infinite;
}
.lois-game-result h4 {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  font-size: 1.4rem;
  margin: 8px 0;
}
.lois-game-result p {
  font-weight: 700;
  color: var(--c-teal-dark);
  font-size: 1rem;
  margin-bottom: 10px;
}

@media print {
  .lois-game { display: none; }
}

/* =========================================
   CARTE DE FRANCE INTERACTIVE
   ========================================= */
.section.section-carte { background: #e6f5f0; }

.carte-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 30px;
}

.france-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 657 / 550;
  filter: drop-shadow(0 10px 25px rgba(30, 75, 95, .12));
}

.france-svg {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.region-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  outline: none;
}

.marker-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #fff;
  font-size: 1.25rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.marker-coral  { background: var(--c-coral); }
.marker-yellow { background: var(--c-yellow); }
.marker-teal   { background: var(--c-teal); }
.marker-lilac  { background: var(--c-lilac); }
.marker-mint   { background: var(--c-mint); }

.marker-label {
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 800;
  color: var(--c-teal-dark);
  background: #fff;
  padding: 2px 8px;
  border-radius: 50px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
  white-space: nowrap;
}

.region-marker:hover .marker-dot,
.region-marker:focus .marker-dot,
.region-marker.active .marker-dot {
  transform: scale(1.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.region-marker.active .marker-label {
  background: var(--c-coral);
  color: #fff;
}

.carte-info {
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-md);
  border-top: 6px solid var(--c-coral);
  min-height: 200px;
}
.carte-info h4 {
  font-family: var(--font-title);
  color: var(--c-teal-dark);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.carte-info p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}
.carte-prompt {
  text-align: center;
  font-style: italic;
  color: var(--c-ink-soft);
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 800px) {
  .carte-wrap { grid-template-columns: 1fr; }
  .france-wrap { max-width: 380px; }
  .marker-dot { width: 38px; height: 38px; font-size: 1.05rem; }
  .marker-label { font-size: .72rem; }
}

/* =========================================
   LIEN ESPACE ENSEIGNANT (top-right)
   ========================================= */
.mode-switch-prof {
  position: fixed;
  top: 14px; right: 14px;
  z-index: 9996;
  background: rgba(255, 255, 255, .92);
  color: var(--c-teal-dark);
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .88rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  border: 2px solid var(--c-teal);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mode-switch-prof:hover {
  transform: translateY(-2px);
  background: var(--c-teal);
  color: #fff;
  border-color: var(--c-teal);
}

.footer-prof-link {
  display: inline-block;
  margin-top: 10px;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  font-size: .82rem;
  transition: color .2s;
}
.footer-prof-link:hover {
  color: #fff;
  text-decoration: underline;
}

@media print {
  .mode-switch-prof { display: none !important; }
  .footer-prof-link { display: none !important; }
}

/* =========================================
   MODE AUDIO
   ========================================= */
.audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  margin-left: 6px;
  background: var(--c-yellow);
  color: var(--c-teal-dark);
  border: 2px solid var(--c-teal-dark);
  border-radius: 50%;
  font-size: .85rem;
  cursor: pointer;
  vertical-align: middle;
  transition: all .15s;
  flex-shrink: 0;
}
.audio-btn:hover {
  background: var(--c-coral);
  color: #fff;
  transform: scale(1.1);
}
.audio-btn.playing {
  background: var(--c-coral);
  color: #fff;
  animation: pulse 1.2s ease-in-out infinite;
}

.section.section-germinal .audio-btn {
  background: var(--c-yellow);
  color: var(--c-teal-dark);
  border-color: var(--c-yellow);
}

.audio-btn-glossary {
  width: 26px; height: 26px;
  font-size: .75rem;
}

@media print {
  .audio-btn { display: none !important; }
}

/* =========================================
   INVITE INSTALLATION PWA
   ========================================= */
#pwa-install-hint {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  max-width: 420px;
  margin: 0 auto;
  padding: 14px 16px;
  background: var(--c-yellow);
  color: var(--c-teal-dark);
  border-radius: var(--r-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  z-index: 9999;
  animation: popIn .4s ease;
}
#pwa-install-hint span { flex: 1; font-size: .92rem; }
#pwa-install-btn {
  background: var(--c-coral);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
}
#pwa-install-btn:hover { transform: translateY(-1px); }
#pwa-install-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--c-teal-dark);
  padding: 0 4px;
  line-height: 1;
}

@media print {
  #pwa-install-hint { display: none !important; }
}

/* =========================================
   LIEN VERS LE MODE PARCOURS (depuis classique)
   ========================================= */
.mode-switch-classic {
  position: fixed;
  top: 14px; left: 14px;
  z-index: 9996;
  background: var(--c-yellow);
  color: var(--c-teal-dark);
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .88rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  border: 2px solid var(--c-teal-dark);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mode-switch-classic:hover {
  transform: translateY(-2px);
  background: var(--c-coral);
  color: #fff;
  border-color: var(--c-coral);
}

@media print {
  .mode-switch-classic { display: none !important; }
}
