:root {
  --cream: #f6f4e9;
  --ink: #11272b;
  --water: #aaefde;
  --deep: #007165;
  --yellow: #ffde65;
  --gutter: clamp(1.25rem, 5vw, 6rem);
  font: 16px/1.52 "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, fieldset { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--deep); outline-offset: 5px; }
img, svg { display: block; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 5; background: var(--yellow); padding: .75rem 1.25rem; }
.skip:not(:focus), .sr-only, .topic-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }

.masthead, .footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; padding: .85rem var(--gutter); }
.masthead { min-height: 4.5rem; border-bottom: 1px solid #152e3326; }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: .65rem; font-size: clamp(1.12rem,2vw,1.6rem); font-weight: 800; line-height: 1; letter-spacing: -.072em; white-space: nowrap; }
.brand strong { color: var(--deep); }
.brand svg { width: 2.1rem; height: 1.3rem; color: var(--deep); }
.guide-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.guide-link:hover { text-decoration: underline; text-underline-offset: .4rem; }
.languages { justify-self: end; display: flex; gap: 5px; }
.languages a { display: grid; place-items: center; min-width: 42px; min-height: 44px; padding: 0 .5rem; border-radius: 100px; font-weight: 800; font-size: .85rem; }
.languages [aria-current] { color: var(--cream); background: var(--ink); }
.languages a:not([aria-current]):hover { background: var(--yellow); }

.hero { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; min-height: min(690px, max(520px, calc(100svh - 6.5rem))); isolation: isolate; }
.hero-copy { align-self: center; padding: clamp(3rem,7vw,7.5rem) clamp(1.5rem,4vw,4rem) clamp(4rem,8vw,8.5rem) var(--gutter); animation: rise .65s cubic-bezier(.2,.7,.25,1) both; }
.kicker { color: var(--deep); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.hero h1, h2, h3 { font-weight: 900; letter-spacing: -.075em; line-height: .94; }
.hero h1 { font-family: Arial, sans-serif; font-size: clamp(3.1rem,6.2vw,8.2rem); margin: .9rem 0 1.4rem; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--deep); }
:lang(fr) .hero h1 { font-size: clamp(2.8rem,5vw,7.4rem); }
.lede { max-width: 30ch; font-size: clamp(1.02rem,1.42vw,1.25rem); }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 49px; margin-top: 1.65rem; padding: .55rem 1rem .55rem 1.2rem; border: 1px solid var(--ink); border-radius: 100px; background: var(--yellow); font-weight: 800; transition: box-shadow .2s, transform .2s; }
.cta:hover { transform: translateY(-3px); box-shadow: 0 4px 0 var(--ink); }
.cta svg { width: 1.1rem; height: 1.1rem; }
.hero-image { position: relative; overflow: hidden; background: #168a86; }
.hero-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; animation: swell-in 1.08s cubic-bezier(.21,.61,.29,1) both; }
.shore { position: relative; width: 100%; height: clamp(1.6rem,5vw,4.2rem); margin-top: clamp(-4.2rem,-5vw,-1.6rem); fill: var(--water); pointer-events: none; z-index: 1; }

.guide { background: var(--water); padding: clamp(4rem,9vw,8rem) var(--gutter) clamp(4rem,9vw,9rem); }
.section-title, .explorer { max-width: 1280px; margin-inline: auto; }
.section-title .kicker { display: flex; gap: .75rem; align-items: center; margin-bottom: .85rem; }
.section-title .kicker svg { width: 26px; height: 15px; }
.section-title h2 { font: 900 clamp(2.65rem,6.8vw,6.5rem)/.94 Arial, sans-serif; letter-spacing: -.075em; }
.explorer { position: relative; padding: 0; margin-top: 2.35rem; border: 0; min-inline-size: 0; }
.choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; }
.choices label { display: grid; place-items: center; min-height: 48px; padding: .4rem .25rem; border: 1px solid var(--deep); border-radius: 100px; font-weight: 800; text-align: center; cursor: pointer; transition: background .25s, color .25s; }
.choices label:hover { background: #ddfff6; }
#topic-1:checked ~ .choices label:nth-child(1),
#topic-2:checked ~ .choices label:nth-child(2),
#topic-3:checked ~ .choices label:nth-child(3) { color: var(--cream); background: var(--ink); border-color: var(--ink); }
#topic-1:focus-visible ~ .choices label:nth-child(1),
#topic-2:focus-visible ~ .choices label:nth-child(2),
#topic-3:focus-visible ~ .choices label:nth-child(3) { outline: 3px solid var(--deep); outline-offset: 4px; }
.water { position: relative; height: 78px; margin: .9rem 0 1.35rem; overflow: hidden; }
.current, .current::after { position: absolute; height: 32px; width: 105%; border: 2px solid #06776e75; border-inline: 0; border-radius: 46%; transform: rotate(-1.4deg); }
.current { inset: 30px -2.5% auto; }
.current::after { content: ""; inset: -11px auto auto -2%; }
.board { position: absolute; left: 16.66%; top: 24px; width: clamp(2.3rem,6vw,5rem); height: 21px; margin-left: clamp(-2.5rem,-3vw,-1.15rem); border: 2px solid var(--ink); border-radius: 68% 45% 58% 45%; background: var(--yellow); box-shadow: 0 5px 0 #00716529; transform: rotate(-13deg); transition: left .62s cubic-bezier(.2,.72,.22,1), transform .62s; }
.board::after { content: ""; position: absolute; inset: 8px 10px auto; height: 1px; background: var(--ink); }
#topic-2:checked ~ .water .board { left: 50%; transform: translateY(-8px) rotate(7deg); }
#topic-3:checked ~ .water .board { left: 83.33%; transform: rotate(-9deg); }
.chapter { display: none; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); gap: .6rem 2rem; align-items: start; border-top: 1px solid var(--deep); padding-top: 1.35rem; }
.chapter h3 { max-width: 13ch; font-size: clamp(2rem,4vw,4rem); }
.chapter > p:not(.tip) { max-width: 48ch; font-size: clamp(1.04rem,1.5vw,1.25rem); }
.chapter .tip { grid-column: 2; display: flex; align-items: center; gap: .65rem; color: var(--deep); font-weight: 800; margin-top: .75rem; }
.tip svg { width: 22px; flex: none; }
#topic-1:checked ~ .chapters [data-topic="1"],
#topic-2:checked ~ .chapters [data-topic="2"],
#topic-3:checked ~ .chapters [data-topic="3"] { display: grid; animation: rise .36s ease-out both; }

.footer { min-height: 7rem; border-top: 1px solid #152e3336; }
.footer p { color: var(--deep); text-align: center; }
.footer > a:last-child { justify-self: end; font-weight: 800; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.footer > a:last-child:hover { text-decoration: underline; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes swell-in { from { transform: scale(1.075) translateY(1%); } }
@media (max-width: 800px) {
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 3.4rem var(--gutter); }
  .hero h1, :lang(fr) .hero h1 { font-size: clamp(2.85rem,10vw,5.7rem); }
  .hero-image { aspect-ratio: 1.45; }
  .hero-image img { object-position: 55% 47%; }
}
@media (max-width: 500px) {
  .masthead { grid-template-columns: 1fr auto; gap: .25rem .5rem; min-height: 4rem; }
  .guide-link { display: none; }
  .brand { gap: .4rem; }
  .brand svg { width: 1.65rem; }
  .languages a { min-width: 39px; }
  .hero-copy { padding-block: 2.6rem; }
  .hero-image { aspect-ratio: 1.18; }
  .chapter { grid-template-columns: 1fr; gap: .8rem; }
  .chapter h3 { max-width: none; }
  .chapter .tip { grid-column: auto; }
  .footer { grid-template-columns: 1fr auto; gap: .5rem 1rem; }
  .footer p { grid-row: 2; grid-column: 1 / -1; text-align: start; }
  .footer > a:last-child { grid-row: 1; grid-column: 2; font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
