:root {
  --ink: #201b18;
  --paper: #f3eee4;
  --paper-light: #fbf8f1;
  --wine: #6f1f2a;
  --wine-dark: #3e1119;
  --gold: #bb9150;
  --sage: #687463;
  --line: rgba(32, 27, 24, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; }
img { display: block; width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  min-height: 74px; padding: 14px clamp(20px, 5vw, 72px); display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 20;
  background: rgba(243, 238, 228, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; color: var(--ink); text-decoration: none; line-height: 1; }
.brand span { font: 700 .92rem/1 var(--sans); letter-spacing: .08em; }
.brand b { color: var(--wine); font: 600 .56rem/1.25 var(--sans); letter-spacing: .18em; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: .88rem; font-weight: 600; }
.site-header nav a { text-decoration: none; }
.reset-button { border: 0; padding: 0; color: var(--wine); background: transparent; font: inherit; cursor: pointer; }

main { overflow: clip; }
.hero { min-height: calc(100vh - 74px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); align-items: center; gap: clamp(30px, 6vw, 96px); padding: clamp(70px, 9vw, 130px) clamp(24px, 8vw, 120px); color: #fff8ed; background: var(--wine-dark); position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 45%, transparent, rgba(0,0,0,.35) 70%); pointer-events: none; }
.hero-art { position: absolute; inset: 0; opacity: .2; overflow: hidden; }
.line { position: absolute; width: 70vw; height: 70vw; border: 1px solid var(--gold); border-radius: 50%; }
.line-one { left: -38vw; top: 18%; }
.line-two { left: -27vw; top: 5%; }
.hero-copy, .hero-portrait { position: relative; z-index: 2; }
.eyebrow, .section-kicker, .place { margin: 0 0 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 700; }
h1, h2 { font-family: var(--serif); line-height: 1; }
h1 { margin: 0; font-size: clamp(4.5rem, 11vw, 10rem); font-weight: 500; letter-spacing: -.055em; }
.hero-lead { max-width: 760px; margin: 26px 0 34px; font: 500 clamp(1.35rem, 2.4vw, 2.1rem)/1.3 var(--serif); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: .82rem; color: #d8c9ba; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 22px; border: 1px solid var(--gold); color: var(--paper-light); background: var(--wine); text-decoration: none; font: 700 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .09em; cursor: pointer; }
.primary-button:hover, .primary-button:focus-visible { background: #8a2a38; }
.primary-button:disabled { opacity: .42; cursor: not-allowed; }
.hero-portrait { margin: 0; transform: rotate(2deg); }
.hero-portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; filter: sepia(.5) contrast(1.08); border: 10px solid rgba(255,248,237,.9); box-shadow: 0 28px 60px rgba(0,0,0,.38); }
.hero-portrait figcaption { margin-top: 12px; color: #d8c9ba; font-size: .7rem; line-height: 1.4; }

.how-to { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 7vw, 110px); padding: 90px clamp(24px, 8vw, 120px); background: var(--paper-light); border-bottom: 1px solid var(--line); }
.how-to h2, .sources h2, .result-panel h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 5.5rem); font-weight: 500; }
.how-to > p { max-width: 720px; margin: 28px 0 0; font-size: 1.05rem; }

.progress-shell { position: sticky; top: 74px; z-index: 15; padding: 18px clamp(18px, 6vw, 90px) 13px; background: rgba(243, 238, 228, .96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.progress-line { height: 2px; background: rgba(111,31,42,.14); }
.progress-line span { display: block; width: 0; height: 100%; background: var(--wine); transition: width .35s ease; }
.progress-shell ol { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 11px 0 0; padding: 0; list-style: none; }
.progress-shell a { display: flex; align-items: center; gap: 8px; color: #776c65; text-decoration: none; font-size: .72rem; white-space: nowrap; }
.progress-shell span:not([data-progress]) { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #a89c92; border-radius: 50%; font-size: .65rem; }
.progress-shell li.active a, .progress-shell li.done a { color: var(--wine); font-weight: 700; }
.progress-shell li.active span, .progress-shell li.done span { color: #fff; background: var(--wine); border-color: var(--wine); }

.overview { max-width: 1460px; margin: 0 auto; padding: 64px clamp(22px, 6vw, 90px) 78px; scroll-margin-top: 90px; }
.overview-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 12px 55px; align-items: end; margin-bottom: 28px; }
.overview-heading .section-kicker { grid-column: 1 / -1; margin: 0; color: var(--wine); }
.overview-heading h2 { max-width: 760px; margin: 0; font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 500; }
.overview-heading h2 em { color: var(--wine); font-weight: 500; }
.overview-heading > p:last-child { max-width: 440px; margin: 0 0 4px; font-size: .88rem; }
.overview-body { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); gap: 18px; }
.overview-map { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 12px; background: #e6dcca; border: 1px solid #d5c5ad; }
.overview-map svg { display: block; width: 100%; height: auto; }
.overview-map > span { margin: 0 0 2px 12px; color: #685d52; font-size: .63rem; letter-spacing: .09em; text-transform: uppercase; }
.map-river { fill: none; stroke: #aabac1; stroke-width: 24; opacity: .8; }
.map-route { fill: none; stroke: #8b5949; stroke-width: 3; stroke-dasharray: 4 7; stroke-linecap: round; }
.map-caption, .map-water { fill: #8c7260; font: 700 12px var(--sans); letter-spacing: 2px; }
.map-water { fill: #607f88; font-size: 10px; }
.map-pin circle { fill: var(--wine); stroke: #f9f0dc; stroke-width: 3; }
.map-pin text { fill: #fff; font: 700 15px var(--sans); text-anchor: middle; }
.overview-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.overview-list a { display: flex; align-items: center; gap: 13px; min-height: 104px; padding: 14px; color: var(--ink); background: var(--paper-light); border: 1px solid var(--line); text-decoration: none; transition: background .2s, border-color .2s; }
.overview-list a:hover, .overview-list a:focus-visible { background: #eadfce; border-color: var(--wine); }
.overview-number { align-self: flex-start; color: var(--wine); font: 600 1.5rem/1 var(--serif); }
.overview-list a > span:nth-child(2) { min-width: 0; }
.overview-list strong { display: block; font: 600 1.25rem/1.05 var(--serif); }
.overview-list small { display: block; margin-top: 6px; color: #70665e; font: 500 .65rem/1.4 var(--sans); }
.overview-arrow { align-self: flex-start; margin-left: auto; color: var(--wine); font-size: .85rem; }

.route-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 44px; max-width: 1460px; margin: 0 auto; padding: 75px clamp(22px, 6vw, 90px) 110px; }
.steps { min-width: 0; }
.step { position: relative; display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 5vw, 70px); padding: 65px 0 95px; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.step:first-child { padding-top: 10px; }
.step-number { position: absolute; right: 0; top: 25px; color: rgba(111,31,42,.08); font: 600 clamp(5rem, 11vw, 10rem)/1 var(--serif); }
.step-image { align-self: start; position: sticky; top: 180px; overflow: hidden; background: #ddd3c5; box-shadow: 0 16px 35px rgba(38,25,19,.14); }
.step-image::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 70px rgba(47,20,16,.22); pointer-events: none; }
.step-image img { aspect-ratio: 4/5; object-fit: cover; filter: sepia(.55) saturate(.7) contrast(1.03); }
#etape-3 .step-image img, #etape-5 .step-image img, #etape-6 .step-image img { aspect-ratio: 4/3; }
.step-content { position: relative; z-index: 2; }
.step-content h2 { max-width: 760px; margin: 0 0 24px; font-size: clamp(2.7rem, 5vw, 5.1rem); font-weight: 500; letter-spacing: -.025em; }
.step-content .intro { font: 600 clamp(1.2rem, 2vw, 1.55rem)/1.4 var(--serif); }
.step-content > p:not(.place):not(.credit) { max-width: 760px; }
blockquote { max-width: 720px; margin: 32px 0; padding: 24px 0 24px 27px; border-left: 2px solid var(--gold); color: var(--wine-dark); font: italic 500 clamp(1.25rem, 2.2vw, 1.75rem)/1.4 var(--serif); }
.reading-button { min-height: 48px; margin: -12px 0 30px; padding: 0 20px; border: 1px solid var(--gold); color: var(--paper-light); background: var(--wine-dark); font: 700 .74rem/1 var(--sans); letter-spacing: .06em; cursor: pointer; }
.reading-button:hover, .reading-button:focus-visible, .reading-button[aria-pressed="true"] { background: var(--wine); }
.field-note { margin: 30px 0; padding: 24px 28px; background: #e8dfd1; border-top: 1px solid var(--gold); }
.field-note strong { color: var(--wine); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.field-note p { margin-bottom: 0; }
.choice-block { margin: 38px 0 28px; padding: 24px; border: 1px solid rgba(111,31,42,.28); background: rgba(255,255,255,.35); }
.choice-block legend { padding: 0 10px; color: var(--wine); font: 700 .75rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; }
.choice-block > p:first-of-type { margin-top: 0; font-weight: 600; }
.choices { display: grid; gap: 9px; }
.choices button { padding: 14px 16px; border: 1px solid var(--line); color: var(--ink); background: var(--paper-light); text-align: left; font: 500 .86rem/1.35 var(--sans); cursor: pointer; }
.choices button:hover, .choices button:focus-visible { border-color: var(--wine); transform: translateX(3px); }
.choices button.selected { color: #fff; background: var(--wine); border-color: var(--wine); }
.choice-feedback { min-height: 1.5em; margin: 14px 0 0; color: var(--wine); font-size: .78rem; }
.step-actions { display: flex; flex-wrap: wrap; gap: 13px 26px; align-items: center; margin-top: 24px; }
.map-link, .next-link { color: var(--wine); font-size: .8rem; font-weight: 700; text-underline-offset: 4px; }
.next-link { margin-left: auto; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.credit { margin-top: 24px; color: #746a63; font-size: .68rem; line-height: 1.45; }

.score-card { position: sticky; top: 176px; align-self: start; padding: 26px; background: var(--wine-dark); color: #f9f3e8; box-shadow: 0 14px 35px rgba(42,23,18,.18); }
.score-card h2 { margin: 0 0 24px; font-size: 2rem; font-weight: 500; }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 18px 0; font-size: .78rem; }
.score-row strong { color: var(--gold); }
.meter { grid-column: 1/-1; height: 5px; background: rgba(255,255,255,.15); }
.meter span { display: block; width: 0; height: 100%; background: var(--gold); transition: width .35s ease; }
.meter.honest span { background: #abbba6; }
.score-help { margin: 24px 0 0; color: #cdbfb2; font-size: .72rem; line-height: 1.5; }

.result-panel { max-width: 1100px; margin: 0 auto 100px; padding: clamp(40px, 7vw, 85px); color: #fff7ec; background: var(--wine-dark); text-align: center; }
.result-panel p:not(.section-kicker) { max-width: 680px; margin: 24px auto 0; font-size: 1.05rem; }
.result-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.result-panel .map-link { color: var(--gold); }
.sources { padding: 85px clamp(24px, 8vw, 120px); color: #eee4d6; background: #171311; }
.sources h2 { font-size: clamp(2.4rem, 4vw, 4.2rem); }
.sources > p { max-width: 780px; }
.sources ul { padding-left: 20px; }
.sources a { color: #d7ae6c; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px clamp(24px, 8vw, 120px); color: #dbcdbf; background: #0f0c0b; font-size: .78rem; }
footer .brand { color: #f4eadc; }
footer .brand b { color: var(--gold); }

@media (max-width: 1050px) {
  .overview-body { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .overview-list a { min-height: 112px; padding: 12px; }
  .route-layout { grid-template-columns: 1fr; }
  .score-card { position: fixed; inset: auto 14px 14px; z-index: 30; display: none; grid-template-columns: auto 1fr 1fr; gap: 12px; padding: 13px 16px; }
  .reading-steps .score-card { display: grid; }
  .score-card .section-kicker, .score-card h2 { display: none; }
  .score-card .score-row { margin: 0; }
  .score-card .score-help { margin: 0; align-self: center; order: -1; max-width: 120px; }
}
@media (max-width: 760px) {
  .overview-heading { display: block; }
  .overview-heading h2 { margin: 13px 0; }
  .overview-body { grid-template-columns: 1fr; }
  .overview-map { max-width: 550px; }
  .overview-list a { min-height: 95px; }
  .site-header nav a { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-portrait { width: min(78%, 360px); margin-left: auto; }
  .how-to { grid-template-columns: 1fr; }
  .progress-shell { overflow-x: auto; }
  .progress-shell ol { min-width: 660px; }
  .step { grid-template-columns: 1fr; }
  .step-image { position: relative; top: auto; width: min(82%, 420px); }
  .step-image img, #etape-3 .step-image img, #etape-5 .step-image img, #etape-6 .step-image img { aspect-ratio: 4/3; }
  .next-link { margin-left: 0; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .overview { padding: 56px 17px 62px; }
  .overview-list { grid-template-columns: 1fr; }
  .overview-list a { min-height: 75px; }
  .hero { min-height: auto; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .route-layout { padding-inline: 17px; }
  .step-content h2 { font-size: 2.75rem; }
  .choice-block { padding: 18px 14px; }
  .score-card { grid-template-columns: 1fr 1fr; }
  .score-card .score-help { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
