/* Le fil relie les chapitres sans intervenir dans le défilement natif. */
main { position: relative; }
.journey-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 3; }
.journey-track, .journey-travelled { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.25; }
.journey-track { stroke: var(--line); opacity: .36; }
.journey-travelled { stroke: var(--accent); opacity: .7; }
.journey-particle { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.journey-halo { stroke: none; opacity: .13; }
.chapter-label { display: flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%; padding: 9px 13px 9px 9px; margin-bottom: 30px; color: var(--muted); font-size: 10px; line-height: 1.5; letter-spacing: .3px; position: relative; z-index: 4; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
[data-chapter]:nth-of-type(odd) .chapter-label { border-radius: 24px; }
.chapter-port { display: block; flex: 0 0 16px; width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 5px var(--bg); }
.chapter-port.is-square { border-radius: 4px; }
.chapter-number { font-family: Consolas, monospace; font-size: 9px; margin-left: 3px; }
.chapter-label, .chapter-port { transition: background-color .18s, border-color .18s, color .18s; }
.hero-copy > .chapter-label { grid-column: 1 / -1; }
[data-chapter] { scroll-margin-top: 20px; }
[data-chapter-state=active] > .chapter-label,
[data-chapter-state=active] > .container > .chapter-label,
[data-chapter-state=active] .hero-copy > .chapter-label { color: var(--accent); }
[data-chapter-state=active] .chapter-label { border-color: var(--line); background: var(--accent-soft); }
[data-chapter-state=active] .chapter-port { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
[data-chapter-state=past] .chapter-port { border-color: var(--accent); background: var(--accent-soft); }
[data-chapter-state=next] .chapter-label { opacity: .72; }
/* Seuls les accents s'atténuent : le contenu reste intégralement lisible. */
[data-chapter-state=active] .section-heading > .eyebrow { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; }
.method-section .chapter-port { background: var(--paper); box-shadow: 0 0 0 5px var(--paper); }
.questions-section .chapter-port { background: var(--surface); box-shadow: 0 0 0 5px var(--surface); }
[data-chapter-state=active] .chapter-port { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.journey-guide { position: fixed; right: 24px; bottom: 20px; z-index: 20; display: flex; align-items: center; gap: 16px; max-width: calc(100% - 40px); padding: 5px 6px 5px 15px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); border-radius: 7px; box-shadow: 0 4px 20px #102b2210; }
.journey-current { font-size: 10px; letter-spacing: .2px; }
.journey-guide button { display: grid; place-items: center; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--accent); font-size: 14px; width: 36px; height: 34px; }
[data-journey-motion=off] .journey-particle, [data-journey-motion=off] .journey-travelled { display: none; }
.journey-enabled .hero-copy > .eyebrow { display: none; }
.journey-enabled .hero h1 { margin-top: 0; }
.journey-enabled .hero { padding-top: 40px; align-items: start; }
.journey-enabled .hero-copy { padding-top: 120px; }
.journey-enabled .hero-visual { margin-top: 0; }
.journey-enabled .footer { padding-bottom: 85px; }
.journey-enabled .benefits { padding-block: 55px; }
.journey-enabled .benefits-grid > .chapter-label { grid-column: 1 / -1; margin-bottom: 4px; }
.journey-enabled .questions-grid > .chapter-label { grid-column: 1 / -1; margin-bottom: -20px; }
.journey-enabled .contact-section > .chapter-label { grid-column: 1 / -1; margin-bottom: -65px; }
.conformity-section { padding-bottom: 80px; }
.conformity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; border-top: 1px solid var(--border); padding-top: 30px; }
.conformity-grid span { font-size: 9px; font-family: Consolas, monospace; color: var(--accent); }
.conformity-grid h3 { font-size: 18px; margin: 15px 0 12px; }
.conformity-grid p { font-size: 12px; line-height: 1.9; }
@media (min-width: 851px) { .journey-enabled .container { width: min(1240px, calc(100% - 144px)); } }
@media (min-width: 641px) and (max-width: 850px) { .journey-enabled .container { width: calc(100% - 104px); } }
@media (max-width: 850px) { .journey-enabled .contact-section > .chapter-label { margin-bottom: -15px; } }
@media (max-width: 640px) {
  .journey-enabled main .container { width: calc(100% - 68px); margin-left: 48px; margin-right: 20px; }
  .journey-enabled .hero { padding-top: 28px; }
  .journey-enabled .hero-copy { padding-top: 80px; }
  .chapter-label { margin-bottom: 25px; font-size: 9px; gap: 7px; }
  .journey-enabled .benefits-grid > .chapter-label { display: flex; padding: 9px; margin-bottom: 15px; border: 1px solid var(--border); }
  .journey-enabled .questions-grid > .chapter-label,
  .journey-enabled .contact-section > .chapter-label { margin-bottom: -10px; }
  .conformity-grid { grid-template-columns: 1fr; gap: 25px; }
  .conformity-grid h3 { margin: 10px 0; }
  .conformity-section { padding-bottom: 55px; }
  .journey-guide { bottom: 12px; right: 12px; padding-left: 10px; gap: 8px; }
  .journey-current { font-size: 9px; }
  .journey-guide button { width: 36px; height: 36px; }
  .journey-enabled .hero h1 { font-size: clamp(37px, 10.5vw, 58px); }
}
@media print { .journey-route, .journey-guide { display: none; } }

/* Entrées et lumières accompagnent la lecture, sans défilement imposé. */
.chapter-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .65s cubic-bezier(.2,.65,.3,1); }
.chapter-reveal.is-visible { opacity: 1; transform: none; transition-delay: var(--reveal-delay, 0ms); }
[data-chapter] h2, [data-chapter] .service-index, [data-chapter] .benefit-number { transition: color .45s ease; }
[data-chapter-state=active] h2 { color: var(--accent); }
.chapter-label, .chapter-port { transition: background-color .4s, border-color .4s, color .4s, box-shadow .4s, opacity .4s; }
[data-chapter-state=active] .chapter-label { box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 12%, transparent); }
[data-chapter-state=active] .chapter-port { box-shadow: 0 0 0 5px var(--accent-soft), 0 0 18px color-mix(in srgb, var(--accent) 38%, transparent); }
[data-chapter-state=active] .conformity-grid, [data-chapter-state=active] .services { border-top-color: var(--accent); }
[data-journey-motion=off] .chapter-reveal { opacity: 1; transform: none; transition: none; }
[data-journey-motion=off] h2, [data-journey-motion=off] .chapter-label, [data-journey-motion=off] .chapter-port { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .chapter-reveal { opacity: 1; transform: none; transition: none; }
  [data-chapter] h2, .chapter-label, .chapter-port { transition: none; }
}
@media print { .chapter-reveal { opacity: 1; transform: none; } }

/* Le menu suit les neuf chapitres ; seul le libellé courant prend du poids. */
.header-inner { gap: 20px; }
.header nav { gap: 16px; font-size: 11px; white-space: nowrap; }
.header nav a { text-align: center; }
.header nav a::after { content: attr(data-label); display: block; height: 0; visibility: hidden; font-weight: 700; pointer-events: none; }
.header nav a[aria-current], .header-contact[aria-current] { font-weight: 700; }
.header nav .nav-contact { display: none; }
.header-contact { font-weight: 500; }
@media (min-width: 641px) and (max-width: 1000px) {
  .journey-enabled .hero-copy { padding-top: 85px; }
  .journey-enabled .hero-visual { margin-top: -12px; }
}
@media (max-width: 1199px) {
  .header nav { display: none; position: absolute; top: 94px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px; max-height: calc(100dvh - 94px); overflow-y: auto; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); font-size: 14px; }
  .header nav.is-open { display: flex; }
  .header nav a { padding: 10px 12px; text-align: left; }
  .header nav .nav-contact { display: block; }
  .header .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 30px; height: 35px; background: none; border: 0; padding: 4px; }
  .header .menu-toggle span { width: 20px; height: 1px; background: var(--ink); }
}
@media (max-width: 850px) { .header nav { top: 78px; max-height: calc(100dvh - 78px); } }
@media (max-width: 640px) {
  .header-inner { gap: 10px; }
  .header nav { top: 73px; max-height: calc(100dvh - 73px); }
  .journey-enabled .hero-visual { margin-top: 12px; }
}

.motion-icon { display: block; width: 18px; height: 18px; flex-shrink: 0; }
.hero-map-actions button, .motion-symbol { display: grid; place-items: center; }
.language-switch { display: flex; align-items: center; gap: 5px; font-size: 10px; white-space: nowrap; }
.language-switch > span { color: var(--line); }
.language-switch a { display: grid; place-items: center; min-height: 32px; padding-inline: 3px; color: var(--muted); }
.language-switch a[aria-current] { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1200px) and (max-width: 1350px) {
  .header-inner { gap: 12px; }
  .header nav { gap: 10px; font-size: 10px; }
  .header-actions { gap: 12px; }
}
@media (max-width: 640px) {
  .header-actions { gap: 9px; }
  .language-switch { gap: 3px; }
}
