:root {
  --ink: #071a2b;
  --ink-soft: #102d45;
  --blue: #0d5bd7;
  --blue-bright: #66b2ff;
  --cyan: #66b2ff;
  --gold: #f2c14e;
  --paper: #f6f9fc;
  --white: #ffffff;
  --muted: #5d7185;
  --line: #dbe5ef;
  --shadow: 0 22px 60px rgba(7, 26, 43, .12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  color: var(--white);
  background: rgba(7, 26, 43, .9);
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--container));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), #8af1e7);
  box-shadow: 0 8px 22px rgba(44, 212, 217, .22);
  font-size: 1.25rem;
  font-weight: 900;
}
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; letter-spacing: -.02em; }
.brand-text small { margin-top: 4px; color: rgba(255,255,255,.64); font-size: .72rem; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .93rem; font-weight: 700; }
.main-nav a { color: rgba(255,255,255,.78); transition: color .2s ease, transform .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--white); }
.main-nav .nav-cta {
  padding: 10px 17px;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 999px;
}
.main-nav .nav-cta:hover { color: var(--ink); transform: translateY(-1px); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--white); transition: .2s ease; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 710px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(7,26,43,.98) 0%, rgba(8,39,68,.98) 55%, rgba(11,58,93,.96) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--container));
  min-height: 710px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 70px;
  padding: 74px 0 88px;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; }
.hero-glow-one { width: 360px; height: 360px; top: 25px; right: 5%; background: rgba(44, 212, 217, .12); }
.hero-glow-two { width: 280px; height: 280px; bottom: -130px; left: 25%; background: rgba(43, 130, 255, .18); }
.anniversary-badge {
  width: fit-content;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px 7px 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.06);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .02em;
}
.anniversary-years { padding: 5px 10px; color: var(--ink); background: var(--gold); border-radius: 999px; }
.eyebrow { margin: 0 0 13px; color: var(--blue-bright); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { color: var(--cyan); }
.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.55rem);
  line-height: .97;
  letter-spacing: -.064em;
}
.hero h1 span { color: var(--cyan); }
.hero-intro { max-width: 640px; margin: 26px 0 0; color: rgba(255,255,255,.72); font-size: clamp(1.03rem, 1.5vw, 1.23rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--cyan); box-shadow: 0 14px 32px rgba(44,212,217,.22); }
.button-secondary { color: var(--white); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.hero-links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 28px; }
.hero-links a { color: rgba(255,255,255,.68); font-size: .9rem; font-weight: 700; }
.hero-links a:hover { color: var(--white); }

.hero-visual { position: relative; min-height: 490px; display: grid; place-items: center; }
.ledger-card {
  position: relative;
  width: min(100%, 430px);
  padding: 27px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.055));
  box-shadow: 0 40px 90px rgba(0,0,0,.25);
  backdrop-filter: blur(15px);
  transform: rotate(2deg);
}
.ledger-card::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 21px;
  pointer-events: none;
}
.ledger-topline { display: flex; gap: 7px; margin-bottom: 34px; }
.ledger-topline span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); }
.ledger-topline span:first-child { background: var(--cyan); }
.ledger-kicker { margin: 0 0 7px; color: rgba(255,255,255,.55); font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.ledger-title { margin-bottom: 27px; font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -.04em; }
.ledger-title span { color: var(--cyan); }
.ledger-row, .ledger-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.68); }
.ledger-row strong { color: var(--white); }
.ledger-total { margin-top: 12px; border-bottom: 0; color: var(--white); font-size: 1.08rem; }
.ledger-total strong { color: var(--cyan); font-size: 1.25rem; }
.floating-note, .floating-seal { position: absolute; z-index: 3; box-shadow: 0 18px 40px rgba(0,0,0,.24); }
.floating-note { padding: 11px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: rgba(255,255,255,.76); background: rgba(7,26,43,.88); font-size: .82rem; }
.floating-note strong { margin-left: 8px; color: var(--cyan); font-size: 1.05rem; }
.note-one { top: 38px; left: 0; transform: rotate(-6deg); }
.note-two { right: -5px; bottom: 64px; transform: rotate(5deg); }
.floating-seal { right: 9px; top: 8px; width: 96px; height: 96px; display: grid; place-content: center; text-align: center; border-radius: 50%; color: var(--ink); background: var(--gold); transform: rotate(8deg); }
.floating-seal::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(7,26,43,.35); border-radius: 50%; }
.floating-seal strong { position: relative; font-size: 2rem; line-height: .9; }
.floating-seal span { position: relative; font-size: .72rem; font-weight: 850; text-transform: uppercase; }

.section { padding: 98px 0; }
.section > *, .section-heading { width: min(calc(100% - 40px), var(--container)); margin-left: auto; margin-right: auto; }
.section-heading { margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.07; letter-spacing: -.05em; }
.section-intro { max-width: 690px; margin: 14px 0 0; color: var(--muted); font-size: 1.04rem; }
.section-heading-split { display: flex; align-items: end; justify-content: space-between; gap: 36px; }

.quick-access { background: var(--white); }
.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.access-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.access-card:hover { transform: translateY(-7px); border-color: #bad0e5; box-shadow: var(--shadow); }
.access-card.featured { color: var(--white); border-color: var(--ink-soft); background: linear-gradient(145deg, var(--ink), #113b5c); }
.access-number { position: absolute; top: 24px; right: 25px; color: #c7d5e2; font-size: .75rem; font-weight: 900; }
.featured .access-number { color: rgba(255,255,255,.45); }
.access-icon { width: fit-content; padding: 7px 10px; border-radius: 8px; color: var(--blue); background: #eaf2ff; font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.featured .access-icon { color: var(--ink); background: var(--cyan); }
.access-card h3 { margin: auto 0 8px; font-size: 1.65rem; letter-spacing: -.035em; }
.access-card p { margin: 0 0 24px; color: var(--muted); }
.featured p { color: rgba(255,255,255,.68); }
.card-link { font-size: .9rem; font-weight: 850; }
.featured .card-link { color: var(--cyan); }

.chapters-section { background: var(--paper); }
.chapter-search { width: min(100%, 390px); height: 52px; padding: 0 15px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); box-shadow: 0 8px 30px rgba(7,26,43,.055); }
.chapter-search > span { color: var(--blue); font-size: 1.35rem; }
.chapter-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.chapter-search input::placeholder { color: #8a9aac; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-top: -12px; margin-bottom: 22px; }
.filter-button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--white); cursor: pointer; font-size: .86rem; font-weight: 800; transition: .2s ease; }
.filter-button:hover, .filter-button.active { color: var(--white); border-color: var(--blue); background: var(--blue); }
.results-count { min-height: 24px; margin-top: 0; margin-bottom: 14px; color: var(--muted); font-size: .86rem; }
.chapters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.chapter-card { min-height: 122px; padding: 20px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.chapter-card:hover { transform: translateY(-3px); border-color: #b9cfe3; box-shadow: 0 14px 36px rgba(7,26,43,.08); }
.chapter-card[hidden] { display: none; }
.chapter-code { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: var(--blue); background: #edf4ff; font-size: .73rem; font-weight: 950; letter-spacing: -.02em; }
.chapter-card h3 { margin: 0 0 3px; font-size: 1.02rem; line-height: 1.2; letter-spacing: -.02em; }
.chapter-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.chapter-arrow { color: #9aacbc; font-size: 1.15rem; transition: transform .2s ease, color .2s ease; }
.chapter-card:hover .chapter-arrow { color: var(--blue); transform: translateX(3px); }
.empty-state { padding: 44px; text-align: center; border: 1px dashed #b8cadb; border-radius: 18px; color: var(--muted); background: rgba(255,255,255,.55); }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { color: var(--ink); font-size: 1.2rem; }

.levels-section { padding-top: 18px; }
.levels-panel { padding: 68px; border-radius: var(--radius-lg); color: var(--white); background: linear-gradient(145deg, var(--ink), #103b5e); box-shadow: var(--shadow); }
.levels-panel .section-heading { width: auto; margin: 0 0 36px; }
.levels-panel .section-heading h2 { max-width: 640px; }
.levels-panel .section-intro { color: rgba(255,255,255,.64); }
.levels-panel .eyebrow { color: var(--cyan); }
.levels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.level-card { min-height: 190px; padding: 23px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: rgba(255,255,255,.055); }
.level-dot { width: 12px; height: 12px; display: block; margin-bottom: 32px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 7px rgba(44,212,217,.11); }
.level-card:nth-child(2) .level-dot { background: var(--blue-bright); box-shadow: 0 0 0 7px rgba(43,130,255,.13); }
.level-card:nth-child(3) .level-dot { background: var(--gold); box-shadow: 0 0 0 7px rgba(242,193,78,.12); }
.level-card:nth-child(4) .level-dot { background: #e886ff; box-shadow: 0 0 0 7px rgba(232,134,255,.12); }
.level-card h3 { margin: 0 0 7px; font-size: 1.15rem; }
.level-card p { margin: 0; color: rgba(255,255,255,.62); font-size: .88rem; }

.story-section { background: var(--white); }
.story-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 90px; align-items: center; }
.story-copy h2 { margin: 0; font-size: clamp(2.15rem, 4vw, 3.8rem); line-height: 1.04; letter-spacing: -.055em; }
.story-copy p:not(.eyebrow) { color: var(--muted); }
.text-link { display: inline-flex; gap: 7px; margin-top: 8px; color: var(--blue); font-weight: 850; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 58px; width: 1px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 116px 1fr; gap: 26px; padding: 0 0 29px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item > span { position: relative; z-index: 1; width: fit-content; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue); background: var(--white); font-size: .78rem; font-weight: 900; }
.timeline-item strong { display: block; margin-bottom: 4px; font-size: 1.04rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .91rem; }
.timeline-item.current > span { color: var(--ink); border-color: var(--gold); background: var(--gold); }

.final-cta { padding: 72px 0; color: var(--white); background: var(--blue); }
.final-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.final-cta .eyebrow { color: #b9f8f3; }
.final-cta h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; letter-spacing: -.05em; }
.button-light { color: var(--ink); background: var(--white); box-shadow: 0 14px 34px rgba(0,0,0,.14); }

.site-footer { padding: 70px 0 24px; color: rgba(255,255,255,.68); background: #051420; }
.footer-grid, .footer-bottom { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 50px; }
.footer-brand { color: var(--white); }
.footer-anniversary { margin: 20px 0 0; color: var(--gold); font-size: .82rem; font-weight: 800; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-column h2 { margin: 0 0 8px; color: var(--white); font-size: .88rem; }
.footer-column a { font-size: .86rem; }
.footer-column a:hover { color: var(--white); }
.footer-column p { margin: 0; font-size: .82rem; }
.footer-bottom { margin-top: 58px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .77rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 1040px) {
  .main-nav { gap: 18px; }
  .hero-inner { grid-template-columns: 1fr .85fr; gap: 34px; }
  .chapters-grid { grid-template-columns: repeat(2, 1fr); }
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
}

@media (max-width: 820px) {
  .header-inner { min-height: 70px; }
  .brand-text small { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 70px;
    right: 0;
    bottom: 0;
    width: min(84vw, 360px);
    padding: 30px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: #071a2b;
    box-shadow: -20px 30px 60px rgba(0,0,0,.24);
    transform: translateX(105%);
    transition: transform .25s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 13px 10px; }
  .main-nav .nav-cta { margin-top: 10px; text-align: center; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { text-align: center; }
  .anniversary-badge { margin-left: auto; margin-right: auto; }
  .hero-intro { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-links { justify-content: center; }
  .hero-visual { min-height: 420px; }
  .section { padding: 76px 0; }
  .access-grid { grid-template-columns: 1fr; }
  .access-card { min-height: 250px; }
  .section-heading-split { display: block; }
  .chapter-search { width: 100%; margin-top: 24px; }
  .levels-panel { padding: 45px 30px; }
  .story-grid { grid-template-columns: 1fr; gap: 50px; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 590px) {
  .header-inner, .hero-inner, .section > *, .section-heading, .footer-grid, .footer-bottom { width: min(calc(100% - 28px), var(--container)); }
  .hero { min-height: auto; }
  .hero-inner { padding-bottom: 60px; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { min-height: 365px; }
  .ledger-card { padding: 22px; }
  .floating-seal { width: 78px; height: 78px; right: -3px; }
  .floating-seal strong { font-size: 1.65rem; }
  .note-one { left: -2px; top: 17px; }
  .note-two { right: -2px; bottom: 24px; }
  .chapters-grid { grid-template-columns: 1fr; }
  .chapter-card { min-height: 110px; grid-template-columns: 46px 1fr auto; padding: 17px; }
  .chapter-code { width: 46px; height: 46px; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 7px; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-button { flex: 0 0 auto; }
  .levels-grid { grid-template-columns: 1fr; }
  .level-card { min-height: 150px; }
  .timeline::before { left: 41px; }
  .timeline-item { grid-template-columns: 84px 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* =========================================================
   PALETTE SOBRE 20 ANS — bleu nuit, crème et doré
   Cette section remplace les nombreuses nuances bleues et
   réduit fortement les grandes surfaces blanches.
   ========================================================= */
:root {
  --ink: #0b1a23;
  --ink-soft: #173446;
  --blue: #173446;
  --blue-bright: #173446;
  --cyan: #d2a63b;
  --gold: #d2a63b;
  --paper: #102936;
  --white: #f0ece3;
  --muted: #b9c3c7;
  --line: rgba(240, 236, 227, .14);
  --shadow: 0 22px 60px rgba(0, 0, 0, .24);
}

body {
  color: var(--white);
  background: var(--paper);
}

.site-header {
  background: rgba(11, 26, 35, .96);
  border-bottom-color: rgba(240, 236, 227, .1);
}

.brand-mark,
.main-nav .nav-cta,
.button-primary,
.featured .access-icon {
  color: var(--ink);
  background: var(--gold);
  box-shadow: none;
}

.brand-text small,
.main-nav a,
.hero-intro,
.hero-links a {
  color: rgba(240, 236, 227, .7);
}

.hero {
  background: linear-gradient(125deg, #0b1a23 0%, #102936 58%, #173446 100%);
}

.hero::before {
  opacity: .18;
  background-image:
    linear-gradient(rgba(240,236,227,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,236,227,.04) 1px, transparent 1px);
}

.hero-glow { display: none; }
.hero .eyebrow,
.hero h1 span,
.ledger-title span,
.ledger-total strong,
.floating-note strong,
.card-link,
.featured .card-link,
.text-link {
  color: var(--gold);
}

.button-primary { box-shadow: 0 14px 32px rgba(0,0,0,.2); }
.button-secondary { background: rgba(240,236,227,.06); border-color: rgba(240,236,227,.2); }

.ledger-card {
  background: rgba(240, 236, 227, .065);
  border-color: rgba(240, 236, 227, .16);
}

.ledger-topline span:first-child { background: var(--gold); }
.floating-note { background: rgba(11, 26, 35, .94); }
.floating-seal { background: var(--gold); }

.section-intro,
.access-card p,
.chapter-card p,
.results-count,
.story-copy p:not(.eyebrow),
.timeline-item p,
.filter-button {
  color: var(--muted);
}

.quick-access,
.story-section {
  color: var(--white);
  background: #14303f;
}

.access-card,
.chapter-card,
.chapter-search,
.filter-button {
  color: var(--white);
  background: #19394a;
  border-color: var(--line);
}

.access-card:hover,
.chapter-card:hover {
  border-color: rgba(210, 166, 59, .55);
  box-shadow: var(--shadow);
}

.access-card.featured {
  color: var(--white);
  background: #0b1a23;
  border-color: rgba(210, 166, 59, .38);
}

.access-number { color: rgba(240,236,227,.35); }
.access-icon,
.chapter-code {
  color: var(--gold);
  background: rgba(210, 166, 59, .12);
}

.chapters-section { color: var(--white); background: var(--paper); }
.chapter-search { box-shadow: none; }
.chapter-search > span,
.chapter-card:hover .chapter-arrow { color: var(--gold); }
.chapter-search input { color: var(--white); }
.chapter-search input::placeholder { color: rgba(240,236,227,.48); }

.filter-button:hover,
.filter-button.active {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.chapter-arrow { color: rgba(240,236,227,.42); }
.empty-state {
  color: var(--muted);
  background: rgba(240,236,227,.035);
  border-color: rgba(240,236,227,.2);
}
.empty-state strong { color: var(--white); }

.levels-panel {
  background: #0b1a23;
  border: 1px solid rgba(210,166,59,.18);
}
.levels-panel .eyebrow { color: var(--gold); }
.level-card { background: rgba(240,236,227,.045); }
.level-dot,
.level-card:nth-child(2) .level-dot,
.level-card:nth-child(3) .level-dot,
.level-card:nth-child(4) .level-dot {
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(210,166,59,.11);
}

.timeline::before { background: rgba(240,236,227,.16); }
.timeline-item > span {
  color: var(--gold);
  background: #19394a;
  border-color: rgba(210,166,59,.35);
}
.timeline-item.current > span {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.final-cta {
  color: var(--white);
  background: var(--blue);
  border-top: 1px solid rgba(210,166,59,.18);
  border-bottom: 1px solid rgba(210,166,59,.18);
}
.final-cta .eyebrow { color: var(--gold); }
.button-light { color: var(--ink); background: var(--gold); }

.site-footer { background: #08151d; }
.footer-brand { color: var(--white); }
.footer-anniversary { color: var(--gold); }

.skip-link { color: var(--ink); background: var(--gold); }

@media (max-width: 820px) {
  .main-nav { background: #0b1a23; }
}

/* =========================================================
   VERSION STYLE1 — palette vive de workout.pambianco.net
   Fond #071a2f, panneaux #122d4f / #183b63,
   accent bleu clair #66b2ff.
   ========================================================= */
:root {
  --ink: #071a2f;
  --ink-soft: #122d4f;
  --blue: #183b63;
  --blue-bright: #66b2ff;
  --cyan: #66b2ff;
  --gold: #ffc124;
  --paper: #0b2340;
  --white: #ffffff;
  --muted: #bcdcff;
  --line: rgba(102, 178, 255, .28);
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

body {
  color: var(--white);
  background: var(--ink);
}

.site-header {
  background: rgba(7, 26, 47, .96);
  border-bottom-color: rgba(102, 178, 255, .22);
}

.brand-mark {
  color: #071a2f;
  background: var(--blue-bright);
  box-shadow: 0 8px 24px rgba(102, 178, 255, .28);
}

.main-nav a { color: rgba(255,255,255,.78); }
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--blue-bright); }
.main-nav .nav-cta {
  color: #071a2f;
  background: var(--blue-bright);
}

.hero {
  background: linear-gradient(125deg, #071a2f 0%, #122d4f 58%, #183b63 100%);
}

.hero::before {
  opacity: .32;
  background-image:
    linear-gradient(rgba(102,178,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102,178,255,.08) 1px, transparent 1px);
}

.hero-glow { display: block; }
.hero-glow-one { background: rgba(102,178,255,.18); }
.hero-glow-two { background: rgba(90,166,246,.22); }

.hero .eyebrow,
.hero h1 span,
.ledger-title span,
.ledger-total strong,
.floating-note strong,
.card-link,
.featured .card-link,
.text-link,
.chapter-card:hover .chapter-arrow,
.chapter-search > span {
  color: var(--blue-bright);
}

.anniversary-years,
.floating-seal,
.button-light,
.timeline-item.current > span {
  color: #071a2f;
  background: var(--gold);
}

.button-primary {
  color: #071a2f;
  background: var(--blue-bright);
  box-shadow: 0 14px 34px rgba(102,178,255,.25);
}
.button-secondary {
  color: var(--white);
  background: rgba(102,178,255,.10);
  border-color: rgba(102,178,255,.38);
}

.ledger-card {
  background: linear-gradient(145deg, rgba(102,178,255,.16), rgba(18,45,79,.68));
  border-color: rgba(102,178,255,.35);
  box-shadow: 0 40px 90px rgba(0,0,0,.30);
}
.ledger-topline span:first-child { background: var(--blue-bright); }
.floating-note {
  background: rgba(7,26,47,.94);
  border-color: rgba(102,178,255,.35);
}

.quick-access,
.story-section {
  color: var(--white);
  background: #0b2340;
}

.access-card,
.chapter-card,
.chapter-search,
.filter-button {
  color: var(--white);
  background: var(--ink-soft);
  border-color: var(--line);
}

.access-card.featured {
  color: var(--white);
  background: linear-gradient(145deg, #122d4f, #183b63);
  border-color: rgba(102,178,255,.45);
}

.access-card:hover,
.chapter-card:hover {
  border-color: var(--blue-bright);
  box-shadow: 0 22px 55px rgba(0,0,0,.30), 0 0 0 1px rgba(102,178,255,.12);
}

.access-icon,
.chapter-code {
  color: var(--blue-bright);
  background: rgba(102,178,255,.14);
}

.chapters-section {
  color: var(--white);
  background: #071a2f;
}
.chapter-search input { color: var(--white); }
.chapter-search input::placeholder { color: rgba(188,220,255,.65); }

.filter-button:hover,
.filter-button.active {
  color: #071a2f;
  border-color: var(--blue-bright);
  background: var(--blue-bright);
}

.levels-panel {
  background: linear-gradient(145deg, #122d4f, #0b2340);
  border-color: rgba(102,178,255,.35);
}
.levels-panel .eyebrow { color: var(--blue-bright); }
.level-card { background: rgba(102,178,255,.08); }
.level-dot,
.level-card:nth-child(2) .level-dot,
.level-card:nth-child(3) .level-dot,
.level-card:nth-child(4) .level-dot {
  background: var(--blue-bright);
  box-shadow: 0 0 0 7px rgba(102,178,255,.13);
}

.timeline::before { background: rgba(102,178,255,.28); }
.timeline-item > span {
  color: var(--blue-bright);
  background: var(--ink-soft);
  border-color: rgba(102,178,255,.45);
}
.timeline-item.current > span {
  color: #071a2f;
  background: var(--gold);
  border-color: var(--gold);
}

.final-cta {
  color: var(--white);
  background: linear-gradient(120deg, #122d4f, #183b63);
  border-top-color: rgba(102,178,255,.30);
  border-bottom-color: rgba(102,178,255,.30);
}
.final-cta .eyebrow { color: var(--blue-bright); }

.site-footer { background: #051426; }
.footer-anniversary { color: var(--gold); }
.skip-link { color: #071a2f; background: var(--blue-bright); }

@media (max-width: 820px) {
  .main-nav { background: #071a2f; }
}


/* =========================================================
   Pages de cours — édition 20 ans
   ========================================================= */
.course-body {
  --course-bg: #071a2f;
  --course-panel: #122d4f;
  --course-panel-2: #183b63;
  --course-accent: #66b2ff;
  --course-text: #f4f8ff;
  --course-muted: #b9c9dc;
  min-width: 0;
  color: var(--course-text);
  background: var(--course-bg);
}
.course-body .brand-mark,
.course-body .main-nav .nav-cta { background: var(--course-accent); }
.course-body .main-nav a[aria-current="page"] { color: var(--course-accent); }
.course-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 70px;
  color: var(--course-text);
  background:
    radial-gradient(circle at 82% 20%, rgba(102,178,255,.22), transparent 32%),
    linear-gradient(125deg, #071a2f 0%, #0d2b4a 58%, #124876 100%);
  border-bottom: 1px solid rgba(102,178,255,.22);
}
.course-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .23;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.course-hero-inner,
.course-main-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}
.course-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: rgba(255,255,255,.63); font-size: .84rem; }
.course-breadcrumb a:hover { color: var(--course-accent); }
.course-breadcrumb span[aria-hidden="true"] { opacity: .45; }
.course-hero .anniversary-badge { margin-bottom: 24px; }
.course-hero .anniversary-years { background: var(--gold); }
.course-hero .eyebrow { color: var(--course-accent); }
.course-hero h1 { max-width: 900px; margin: 0; font-size: clamp(2.6rem, 6vw, 5.25rem); line-height: 1.01; letter-spacing: -.055em; }
.course-hero-intro { max-width: 760px; margin: 22px 0 0; color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.course-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.course-body .button-primary { color: #071a2f; background: var(--course-accent); }
.course-body .button-secondary { color: var(--course-text); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.055); }
.course-main { padding: 48px 0 86px; background: var(--course-bg); }
.course-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.course-toolbar a { color: var(--course-muted); font-size: .9rem; font-weight: 760; }
.course-toolbar a:hover { color: var(--course-accent); }
.course-card {
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(102,178,255,.24);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--course-panel), #0e2947);
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
}
.course-content { color: var(--course-text); font-size: 1rem; line-height: 1.72; }
.course-content, .course-content * { box-sizing: border-box; }
.course-content .art-content-layout,
.course-content .art-content-layout-row,
.course-content .art-layout-cell { display: block !important; width: 100% !important; max-width: 100% !important; float: none !important; }
.course-content .art-content-layout { margin: 0 0 20px; }
.course-content p { margin: 0 0 1rem; color: inherit; }
.course-content p:empty { display: none; }
.course-content span:not(.legacy-accent):not(.legacy-muted),
.course-content div:not(.video-frame):not(.table-scroll) { color: inherit; }
.course-content .legacy-accent { color: #ff7a66 !important; font-weight: 850; }
.course-content .legacy-muted { color: var(--course-muted) !important; }
.course-content h1,
.course-content h2,
.course-content h3,
.course-content h4,
.course-content h5,
.course-content h6 { margin: 1.7em 0 .6em; color: var(--course-accent); line-height: 1.18; letter-spacing: -.025em; }
.course-content h1:first-child,
.course-content h2:first-child,
.course-content h3:first-child { margin-top: 0; }
.course-content a:not(.course-download) { color: var(--course-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.course-content a:not(.course-download):hover { color: #a9d4ff; }
.course-content .course-download,
.course-content .art-button {
  min-height: 44px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #071a2f !important;
  background: var(--course-accent);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  font-weight: 850;
  text-decoration: none !important;
}
.course-content img {
  width: auto;
  max-width: 100% !important;
  height: auto !important;
  margin: 18px auto;
  display: block;
  border-radius: 12px;
}
.video-frame { position: relative; width: min(100%, 900px); margin: 24px auto; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(102,178,255,.25); border-radius: 18px; background: #020a12; box-shadow: 0 18px 45px rgba(0,0,0,.25); }
.video-frame iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.course-content iframe:not(.video-frame iframe) { max-width: 100%; border-radius: 14px; }
.table-scroll { width: 100%; overflow-x: auto; margin: 22px 0; border-radius: 12px; }
.course-content table { width: 100% !important; min-width: 560px; border-collapse: collapse; color: var(--course-text); background: rgba(255,255,255,.035); }
.course-content th,
.course-content td { padding: 10px 12px; border: 1px solid rgba(255,255,255,.15); }
.course-content th { color: #071a2f; background: var(--course-accent); }
.course-content ul,
.course-content ol { margin: 1rem 0 1.3rem; padding-left: 1.4rem; }
.course-content li { margin: .35rem 0; }
.course-content hr { border: 0; border-top: 1px solid rgba(255,255,255,.15); margin: 30px 0; }
.course-empty { padding: 34px; border: 1px dashed rgba(102,178,255,.4); border-radius: 16px; color: var(--course-muted); text-align: center; background: rgba(102,178,255,.055); }
.course-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.course-pagination a { min-height: 90px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(102,178,255,.2); border-radius: 16px; color: var(--course-muted); background: var(--course-panel); transition: transform .2s ease, border-color .2s ease; }
.course-pagination a:hover { transform: translateY(-2px); border-color: var(--course-accent); }
.course-pagination a:last-child { text-align: right; }
.course-pagination small { color: var(--course-accent); font-weight: 800; }
.course-pagination strong { margin-top: 3px; color: var(--course-text); }
.course-body .site-footer { border-top: 1px solid rgba(102,178,255,.15); }

@media (max-width: 820px) {
  .course-hero { padding: 55px 0 48px; }
  .course-main { padding: 32px 0 60px; }
  .course-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .course-card { padding: 22px 17px; border-radius: 18px; }
  .course-content { font-size: .96rem; }
  .course-pagination { grid-template-columns: 1fr; }
  .course-pagination a:last-child { text-align: left; }
}

@media (max-width: 520px) {
  .course-hero-inner, .course-main-inner { width: min(calc(100% - 24px), var(--container)); }
  .course-hero h1 { font-size: clamp(2.25rem, 12vw, 3.35rem); }
  .course-content [style*="font-size"] { font-size: inherit !important; }
}

/* Resource groups for the expanded Échelle des prix chapter. */
.chapter-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 34px; }
.chapter-resource-card { min-height: 118px; padding: 18px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(102,178,255,.22); border-radius: 16px; color: var(--course-text) !important; background: rgba(102,178,255,.065); text-decoration: none !important; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.chapter-resource-card:hover { transform: translateY(-2px); border-color: var(--course-accent); background: rgba(102,178,255,.11); }
.chapter-resource-card strong { color: var(--course-accent); font-size: 1.06rem; }
.chapter-resource-card span { margin-top: 6px; color: var(--course-muted) !important; font-size: .9rem; line-height: 1.45; }
@media (max-width: 820px) { .chapter-resource-grid { grid-template-columns: 1fr; } }

.course-content .legacy-highlight { color: var(--gold) !important; font-weight: 850; }

/* === Chapitres à volets — pilote TVA === */
.chapter-overview {
  scroll-margin-top: 6.5rem;
}

.chapter-overview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.chapter-overview-heading h2 {
  margin: 0.2rem 0 0.55rem;
}

.chapter-overview-heading p {
  margin: 0;
  max-width: 52rem;
}

.chapter-kicker {
  color: var(--accent, #d6a928);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.chapter-accordion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.chapter-action-button {
  cursor: pointer;
}

.chapter-toc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.25rem 0 1.5rem;
}

.chapter-toc a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.7rem;
  padding: 0.8rem 1rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(87, 133, 177, 0.35);
  border-radius: 0.85rem;
  background: rgba(11, 40, 67, 0.055);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.chapter-toc a:hover,
.chapter-toc a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(208, 159, 34, 0.7);
  background: rgba(208, 159, 34, 0.09);
}

.chapter-toc a span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #10223a;
  background: var(--accent, #efc454);
  font-weight: 900;
}

.chapter-sections {
  display: grid;
  gap: 1rem;
}

.chapter-section {
  scroll-margin-top: 6.5rem;
  overflow: hidden;
  border: 1px solid rgba(70, 111, 151, 0.4);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 30px rgba(6, 24, 43, 0.06);
}

.chapter-section[open] {
  border-color: rgba(208, 159, 34, 0.65);
  box-shadow: 0 15px 34px rgba(6, 24, 43, 0.1);
}

.chapter-section > summary {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: linear-gradient(135deg, rgba(8, 36, 63, 0.055), rgba(208, 159, 34, 0.055));
}

.chapter-section > summary::-webkit-details-marker {
  display: none;
}

.chapter-section > summary:hover {
  background: linear-gradient(135deg, rgba(8, 36, 63, 0.09), rgba(208, 159, 34, 0.1));
}

.chapter-section-number {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border-radius: 0.75rem;
  color: #10223a;
  background: var(--accent, #efc454);
  font-weight: 900;
}

.chapter-section-heading {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.chapter-section-heading strong {
  font-size: 1.08rem;
}

.chapter-section-heading small {
  color: var(--text-muted, #607084);
  font-size: 0.88rem;
  font-weight: 500;
}

.chapter-section-icon {
  position: relative;
  width: 1.4rem;
  height: 1.4rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.chapter-section-icon::before,
.chapter-section-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.9rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.chapter-section-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.chapter-section[open] .chapter-section-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.chapter-section-content {
  padding: 1.15rem 1.2rem 1.35rem;
  border-top: 1px solid rgba(70, 111, 151, 0.22);
}

.chapter-section-content > :first-child {
  margin-top: 0;
}

.chapter-section-content .course-download {
  margin-right: 0.45rem;
}

.chapter-back-link {
  margin: 1.6rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(70, 111, 151, 0.2);
  text-align: right;
}

@media (max-width: 760px) {
  .chapter-overview-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .chapter-toc {
    grid-template-columns: 1fr;
  }

  .chapter-accordion-actions .button {
    flex: 1 1 auto;
  }

  .chapter-section > summary {
    align-items: flex-start;
  }

  .chapter-section-heading small {
    display: none;
  }
}

/* === Sommaire à cinq volets — Salaires === */
.chapter-toc-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.chapter-toc-five a {
  min-width: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (max-width: 1080px) {
  .chapter-toc-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .chapter-toc-five {
    grid-template-columns: 1fr;
  }
}

/* === Sommaire à quatre volets — Amortissements === */
.chapter-toc-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .chapter-toc-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .chapter-toc-four {
    grid-template-columns: 1fr;
  }
}

/* === Correction lisibilité des volets — retour au fond bleu === */
.chapter-section {
  color: #f4f8fc;
  border-color: rgba(111, 161, 207, 0.42);
  background: linear-gradient(145deg, #0d2945, #091f36);
  box-shadow: 0 12px 30px rgba(3, 15, 28, 0.22);
}

.chapter-section[open] {
  border-color: rgba(239, 196, 84, 0.72);
  box-shadow: 0 16px 36px rgba(3, 15, 28, 0.3);
}

.chapter-section > summary {
  color: #ffffff;
  background: linear-gradient(135deg, #123754, #0c2944);
}

.chapter-section > summary:hover,
.chapter-section > summary:focus-visible {
  background: linear-gradient(135deg, #184461, #10334f);
}

.chapter-section-heading strong,
.chapter-section-content,
.chapter-section-content p,
.chapter-section-content li,
.chapter-section-content td,
.chapter-section-content th,
.chapter-section-content span {
  color: #f4f8fc;
}

.chapter-section-heading small {
  color: #bdd0e3;
}

.chapter-section-content {
  background: #0b243d;
  border-top-color: rgba(136, 179, 218, 0.28);
}

.chapter-section-content h2,
.chapter-section-content h3,
.chapter-section-content h4,
.chapter-section-content strong,
.chapter-section-content b {
  color: #ffffff;
}

.chapter-section-content a {
  color: #8fd0ff;
}

.chapter-section-content a:hover,
.chapter-section-content a:focus-visible {
  color: #f4c34e;
}

.chapter-section-content table {
  color: #f4f8fc;
}

.chapter-section-content tr,
.chapter-section-content td,
.chapter-section-content th {
  border-color: rgba(136, 179, 218, 0.3);
}

.chapter-section-content blockquote {
  color: #dbe8f4;
  border-left-color: #f4c34e;
}

.chapter-back-link {
  border-top-color: rgba(136, 179, 218, 0.28);
}

.chapter-toc a {
  color: #f4f8fc;
  border-color: rgba(111, 161, 207, 0.42);
  background: linear-gradient(145deg, #0d2945, #091f36);
}

.chapter-toc a:hover,
.chapter-toc a:focus-visible {
  color: #ffffff;
  border-color: rgba(239, 196, 84, 0.76);
  background: linear-gradient(145deg, #153d5c, #0d2d49);
}

/* === Sommaire à neuf volets — Échelle des prix === */
.chapter-toc-nine {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chapter-toc-nine a {
  min-width: 0;
}

@media (max-width: 980px) {
  .chapter-toc-nine {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .chapter-toc-nine {
    grid-template-columns: 1fr;
  }
}

/* === Accueil : visite du site, parcours, chapitres et recherche — v55 === */
.visit-section,
.progressive-section,
.chapters-section {
  background: var(--paper);
}

.visit-choice-grid,
.progressive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.visit-choice-card,
.progress-step-card,
.site-search-panel,
.site-search-result {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #19394a;
  color: var(--white);
  box-shadow: 0 14px 34px rgba(3, 13, 25, .12);
}

.visit-choice-card {
  min-height: 170px;
  padding: 24px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.visit-choice-card:hover,
.progress-step-card:hover,
.site-search-result:hover {
  transform: translateY(-3px);
  border-color: rgba(210, 166, 59, .62);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.visit-choice-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--gold);
  background: rgba(210, 166, 59, .12);
  font-size: 1.25rem;
  font-weight: 950;
}

.visit-choice-card h3,
.progress-step-card h3 {
  margin: 0 0 7px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.14;
  letter-spacing: -.035em;
}

.visit-choice-card p,
.progress-step-card p,
.site-search-result span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.visit-choice-arrow {
  color: var(--gold);
  font-size: 1.25rem;
  transition: transform .2s ease;
}

.visit-choice-card:hover .visit-choice-arrow {
  transform: translateX(4px);
}

.progressive-section {
  padding-top: 18px;
}

.progressive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.progress-step-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.progress-step-card::after {
  content: attr(data-step-number);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(105, 184, 255, .13);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 24px;
}

.step-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.07);
  font-size: .78rem;
}

.step-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--gold);
  font-weight: 850;
}

.site-search-panel {
  margin-top: 34px;
  padding: 28px;
}

.site-search-panel h2 {
  margin: 0 0 20px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  letter-spacing: -.04em;
}

.site-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.site-search-field > span {
  color: var(--white);
  font-weight: 900;
}

.site-search-field input {
  min-height: 54px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--white);
  background: #0f2c42;
  outline: none;
}

.site-search-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(210, 166, 59, .16);
}

.site-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.site-search-result {
  display: grid;
  gap: 4px;
  padding: 15px;
  background: #112f45;
}

.site-search-result strong {
  color: var(--white);
}

.site-search-result small {
  color: var(--gold);
  overflow-wrap: anywhere;
}

.home-stage-filters[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .visit-choice-grid,
  .progressive-grid,
  .site-search-results {
    grid-template-columns: 1fr;
  }

  .visit-choice-card {
    min-height: 145px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding: 20px;
  }

  .visit-choice-number {
    width: 48px;
    height: 48px;
  }

  .site-search-field {
    grid-template-columns: 1fr;
  }
}

/* === Accueil : thèmes transversaux — v56 === */
.themes-section {
  background: var(--paper);
  padding-top: 18px;
}

.visit-choice-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.visit-choice-grid-four .visit-choice-card {
  min-height: 190px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
}

.visit-choice-grid-four .visit-choice-number {
  width: 46px;
  height: 46px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.theme-card {
  min-height: 154px;
  padding: 20px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #19394a;
  color: var(--white);
  box-shadow: 0 14px 34px rgba(3, 13, 25, .12);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.theme-card:hover {
  transform: translateY(-3px);
  border-color: rgba(210, 166, 59, .62);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.theme-code {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--gold);
  background: rgba(105, 184, 255, .13);
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: -.02em;
}

.theme-card h3 {
  margin: 0 0 5px;
  font-size: 1.02rem;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.theme-card p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}

.theme-arrow {
  color: var(--gold);
  font-size: 1.15rem;
  transition: transform .2s ease;
}

.theme-card:hover .theme-arrow {
  transform: translateX(3px);
}

@media (max-width: 1180px) {
  .visit-choice-grid-four,
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .visit-choice-grid-four,
  .theme-grid {
    grid-template-columns: 1fr;
  }
  .theme-card {
    min-height: 126px;
    padding: 16px;
  }
}



/* Note de test dans la zone S’exercer */
.cta-note{
  margin: .75rem 0 0;
  color: rgba(255,255,255,.82);
  max-width: 720px;
  line-height: 1.6;
}
