:root {
  --lichen: #EEF4E6;
  --paper: #FBFDF7;
  --fir: #12372A;
  --muted: #46604F;
  --gentian: #2446C8;
  --larch: #F0A81E;
  --frost: #CADBBE;
  --forest: #0E3B2C;
  --sun: #F0A81E;
  --sun-soft: #FFD27A;
  --deep-blue: #1F3AA8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--lichen);
  color: var(--fir);
  font: 17px/1.6 var(--sans);
}
h1, h2, h3, .brand { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
a { color: var(--gentian); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gentian); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.headband { background: var(--forest); }
.headband :focus-visible, .hero :focus-visible, footer :focus-visible, #adresses :focus-visible { outline-color: var(--sun-soft); }
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { font-size: 1.5rem; text-decoration: none; color: #F7FBF1; }
.top nav { display: flex; gap: 20px; font-size: .95rem; }
.top nav a { color: #DFF2E0; }

.hero { position: relative; overflow: hidden; padding: 32px 0 72px; background: var(--forest); }
.contours { position: absolute; right: -140px; top: -60px; width: 700px; height: 700px; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -.01em; color: #F7FBF1; }
.hero .lead { margin: 20px 0 0; max-width: 34em; color: #BFE3C8; font-size: 1.1rem; }

.guide { background: var(--paper); border-top: 6px solid var(--sun); border-radius: 6px; padding: 24px; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.guide .step { display: none; }
.guide .step.active { display: block; }
.guide .count { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.guide h2 { font-size: 1.35rem; margin-bottom: 16px; outline: none; }
.choices { display: grid; gap: 10px; }
.choice {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: #fff; color: var(--fir); font: inherit;
  border: 1px solid var(--frost); border-radius: 4px; padding: 12px 14px;
}
.choice strong { display: block; font-weight: 600; }
.choice span { display: block; font-size: .92rem; color: var(--muted); }
.choice:hover { border-color: var(--gentian); background: #EAF0FF; }
.linkbtn { background: none; border: 0; padding: 0; margin-top: 16px; font: inherit; font-size: .95rem; color: var(--gentian); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.result-sub { margin: -8px 0 12px; color: var(--muted); font-size: .95rem; }
.tips { margin: 0 0 16px; padding-left: 20px; }
.tips li { margin-bottom: 8px; }
.altnote { border-left: 4px solid var(--larch); padding: 4px 0 4px 14px; margin: 0 0 12px; }
.fine { font-size: .85rem; color: var(--muted); margin: 0; }

section.block { padding: 56px 0; border-top: 1px solid var(--frost); }
section.block > .wrap > h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 8px; }
.intro { margin: 0 0 28px; color: var(--muted); max-width: 40em; }

.articles { max-width: 760px; }
details.post { border-top: 1px solid var(--frost); }
details.post:last-child { border-bottom: 1px solid var(--frost); }
details.post summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
}
details.post summary::-webkit-details-marker { display: none; }
details.post h3 { font-size: 1.4rem; }
details.post .meta { grid-column: 1; margin: 0; font-size: .9rem; color: var(--muted); }
details.post summary::after { content: "Lire"; grid-column: 2; grid-row: 1; color: var(--gentian); font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
details.post[open] summary::after { content: "Réduire"; }
details.post .body { padding: 0 0 24px; max-width: 38em; font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; }
details.post .body p { margin: 0 0 14px; }

dl.res { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; margin: 0; max-width: 820px; }
dl.res dt { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
dl.res dd { margin: 2px 0 0; color: var(--muted); }
#adresses { background: var(--deep-blue); border-top: 0; color: #fff; }
#adresses .intro, #adresses dl.res dd { color: #D6E0FF; }
#adresses a { color: var(--sun-soft); }

footer { background: var(--forest); padding: 28px 0 40px; font-size: .92rem; color: #BFE3C8; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer .links { display: flex; gap: 20px; }
footer button { background: none; border: 0; padding: 0; font: inherit; color: var(--sun-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

dialog { width: calc(100% - 32px); max-width: 640px; max-height: 85vh; border: 1px solid var(--frost); border-radius: 6px; background: var(--paper); color: var(--fir); padding: 0; }
dialog::backdrop { background: rgba(14, 59, 44, .65); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--frost); position: sticky; top: 0; background: var(--paper); }
.dlg-head h2 { font-size: 1.2rem; }
.dlg-head button { font: inherit; background: #fff; border: 1px solid var(--frost); border-radius: 4px; padding: 6px 12px; cursor: pointer; color: var(--fir); }
.dlg-body { padding: 8px 24px 24px; }
.dlg-body h3 { font-size: 1.15rem; margin: 20px 0 8px; }
.dlg-body p { margin: 0 0 12px; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .contours { right: -260px; top: -120px; opacity: .4; }
  dl.res { grid-template-columns: 1fr; }
  .brand { white-space: nowrap; font-size: 1.35rem; }
  .top nav { gap: 14px; font-size: .9rem; }
  .top nav a { white-space: nowrap; }
}
