/* The app's website. One stylesheet, no script, no request to another site.

   The palette and the type come from the app (DicteeGuru/Design/Theme.swift
   and Typography.swift): white and grey, an almost black ink, and amber to
   say "look here". There is no red. */

/* ---------- Typeface: Nunito, SIL Open Font License 1.1 (fonts/OFL.txt) ---------- */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-extrabold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --ground: #F6F6F8;
  --surface: #FFFFFF;
  --surface-alt: #EFEFF2;
  --line: #E8E8ED;
  --ink: #1B1B1F;
  --muted: #62626C;

  --btn-bg: #27272A;
  --btn-bg-hover: #3F3F46;
  --btn-fg: #FFFFFF;

  --amber: #E8952B;
  --amber-text: #A85A08;
  --amber-soft: #FDF0DC;
  --green-text: #0B7A5E;
  --green-soft: #E2F6F0;

  /* The four letters of the correction. */
  --code-c: #2F6FB5;
  --code-h: #6B4E9E;
  --code-o: #A85A08;
  --code-a: #B0562A;
  --code-fg: #FFFFFF;

  /* The dark band: the dictation screen's ground in the app. */
  --band-bg: #27272A;
  --band-ink: #F4F4F6;
  --band-muted: #C9C9D1;
  --band-line: #3F3F46;

  --logo-tile: #27272A;
  --focus: #27272A;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

  --radius-s: 10px;
  --radius-card: 20px;
  --radius-l: 28px;
  --gutter: 16px;
  --wrap: 1080px;

  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1B1B1F;
    --surface: #27272A;
    --surface-alt: #323238;
    --line: #3F3F46;
    --ink: #F4F4F6;
    --muted: #B4B4BE;

    --btn-bg: #F4F4F6;
    --btn-bg-hover: #FFFFFF;
    --btn-fg: #1B1B1F;

    --amber-text: #F2B25C;
    --amber-soft: #3B2A12;
    --green-text: #5FD3B0;
    --green-soft: #12332A;

    --code-c: #8DBBF0;
    --code-h: #BBA6E6;
    --code-o: #F2B25C;
    --code-a: #EDA27C;
    --code-fg: #1B1B1F;

    --band-bg: #27272A;
    --band-ink: #F4F4F6;
    --band-muted: #C9C9D1;
    --band-line: #3F3F46;

    --logo-tile: #3F3F46;
    --focus: #F4F4F6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

/* Styled lists lose their bullets; they keep role="list" in the HTML so that
   screen readers still announce them as lists. */
ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--muted);
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

strong,
b {
  font-weight: 800;
}

svg {
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 800;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* A value the owner still has to fill in. */
.ph {
  padding: 1px 6px;
  border: 1.5px dashed var(--amber);
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber-text);
  font-size: 0.9em;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Header ---------- */

/* Phones: the brand and the language link share the first row, the three
   navigation links take the second. Wider screens use a single row. */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  padding-block: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.logo-tile {
  fill: var(--logo-tile);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  order: 2;
  flex-basis: 100%;
  gap: 0 16px;
  font-size: 0.875rem;
  font-weight: 600;
}

.site-nav a {
  display: inline-block;
  padding-block: 11px;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
}

/* The link to the same page in the other language. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  order: 1;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--muted);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
}

.lang-switch:hover {
  background: var(--surface-alt);
}

.lang-switch svg {
  width: 16px;
  height: 16px;
  flex: none;
}

@media (min-width: 720px) {
  .site-header .wrap {
    flex-wrap: nowrap;
    gap: 28px;
    padding-block: 14px;
  }

  .site-nav {
    order: 0;
    flex-basis: auto;
    gap: 0 26px;
    font-size: 0.9375rem;
  }

  .lang-switch {
    order: 0;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--btn-bg-hover);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

.btn-quiet:hover {
  background: var(--surface-alt);
}

/* ---------- Section headings ---------- */

.section {
  padding-block: 56px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(1.625rem, 1.2rem + 2vw, 2.375rem);
}

.section-intro {
  max-width: 40em;
  margin-top: 14px;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 24px 56px;
}

.hero .wrap {
  display: grid;
  gap: 44px;
}

.hero .eyebrow {
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.9375rem, 1.2rem + 3.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero .lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-figure {
  justify-self: center;
  width: 100%;
  max-width: 320px;
}

.hero-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

/* The phone is a drawing: its colours are the app's light ones, whatever
   the page's theme. */
.phone {
  padding: 10px;
  border-radius: 46px;
  background: #27272A;
  box-shadow: 0 28px 48px -20px rgba(0, 0, 0, 0.45), inset 0 0 0 1.5px #52525B;
}

.phone-screen {
  position: relative;
  padding: 50px 16px 18px;
  border-radius: 36px;
  background: #F6F6F8;
  color: #1B1B1F;
  line-height: 1.3;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 78px;
  height: 22px;
  margin-left: -39px;
  border-radius: 999px;
  background: #1B1B1F;
}

.m-eyebrow {
  color: #6B6B75;
  font-size: 0.8125rem;
  font-weight: 600;
}

.m-score {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 2px;
}

.m-pct {
  color: #3F3F46;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.m-count {
  padding-bottom: 5px;
  color: #6B6B75;
  font-size: 0.8125rem;
}

.m-count b {
  display: block;
  color: #1B1B1F;
  font-size: 0.9375rem;
  font-weight: 600;
}

.m-card {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.m-label {
  color: #6B6B75;
  font-size: 0.75rem;
  font-weight: 600;
}

.m-text {
  padding-bottom: 14px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 3;
}

/* A word to look at again: written in amber, underlined, its letter below. */
.w {
  position: relative;
  display: inline-block;
  color: #A85A08;
  line-height: 1.2;
}

.w::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #E8952B;
}

.w .code {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  margin-left: -9px;
}

.code {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
}

.code-c { background: #2F6FB5; }
.code-h { background: #6B4E9E; }
.code-o { background: #A85A08; }
.code-a { background: #B0562A; }

.m-fix {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.m-fix .code {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 0.75rem;
}

.m-wrong { color: #A85A08; }
.m-right { color: #0B7A5E; }
.m-fix svg { width: 14px; height: 14px; color: #6B6B75; }

/* ---------- The three steps ---------- */

.steps {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 22px 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--amber-text);
  font-weight: 800;
  line-height: 1;
}

.step h3,
.mode h3,
.value h3 {
  font-size: 1.1875rem;
}

.step p,
.mode p {
  margin-top: 8px;
  color: var(--muted);
}

/* On the English pages: the exercise's name as the app shows it, in French. */
.mode .native {
  margin-top: 2px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- The five exercises ---------- */

.modes {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.mode {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 22px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mode h3,
.mode p {
  padding-inline: 8px;
}

/* The small example at the top of each card. */
.specimen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.specimen svg {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.sp-rule { stroke: var(--line); stroke-width: 1.5; }
.sp-ink { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-frame { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sp-paper { fill: var(--surface); }

.sp-field {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.sp-caret {
  width: 2px;
  height: 1.25em;
  margin-left: 2px;
  border-radius: 2px;
  background: var(--amber);
}

.sp-gap {
  display: inline-block;
  width: 4.2em;
  height: 1.5em;
  margin-inline: 0.2em;
  border-bottom: 2px solid var(--amber);
  border-radius: 6px 6px 0 0;
  background: var(--amber-soft);
  vertical-align: -0.35em;
}

.sp-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}

.sp-hole {
  display: inline-block;
  width: 0.78em;
  height: 1.25em;
  margin-inline: 1px;
  border-bottom: 2px solid var(--amber);
  border-radius: 4px 4px 0 0;
  background: var(--amber-soft);
  vertical-align: -0.28em;
}

.sp-ok {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-text);
}

/* ---------- The correction ---------- */

.correction .wrap {
  display: grid;
  gap: 32px;
}

.legend {
  display: grid;
  gap: 12px;
}

.legend-row {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 84px;
  padding: 16px 18px 16px 82px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.letter {
  position: absolute;
  top: 50%;
  left: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border-radius: 14px;
  color: var(--code-fg);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.letter-c { background: var(--code-c); }
.letter-h { background: var(--code-h); }
.letter-o { background: var(--code-o); }
.letter-a { background: var(--code-a); }

.legend-row dt {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.2;
}

/* On the English pages: what the French word behind the letter means. */
.gloss {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.legend-row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.legend-row dd svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* The arrow never parts from the corrected word. */
.fix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.wrong {
  color: var(--amber-text);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.right {
  color: var(--green-text);
}

.rules {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.rules li {
  padding-left: 18px;
  border-left: 3px solid var(--amber);
}

.rules strong {
  display: block;
}

.rules span {
  color: var(--muted);
}

/* ---------- Effort first ---------- */

.effort {
  background: var(--amber-soft);
}

.effort .wrap {
  display: grid;
  gap: 36px;
}

.effort .eyebrow {
  color: var(--amber-text);
}

.effort .principle {
  margin-top: 18px;
  max-width: 22em;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.values {
  display: grid;
  gap: 24px;
}

.value p {
  margin-top: 6px;
}

/* ---------- Privacy: the dark band ---------- */

.privacy {
  --focus: #F4F4F6;
  background: var(--band-bg);
  color: var(--band-ink);
}

.privacy .eyebrow,
.privacy .section-intro {
  color: var(--band-muted);
}

.privacy a {
  text-decoration-color: var(--band-muted);
}

.facts {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--band-line);
}

.facts li {
  position: relative;
  padding: 18px 0 18px 30px;
  border-bottom: 1px solid var(--band-line);
}

.facts li::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--amber);
}

.facts strong {
  display: block;
}

.facts span {
  display: block;
  color: var(--band-muted);
}

.privacy .more {
  display: inline-block;
  margin-top: 28px;
  font-weight: 800;
}

/* ---------- About ---------- */

.about h2 {
  font-size: 1.4375rem;
}

.about p {
  max-width: 40em;
  margin-top: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: grid;
  gap: 18px;
  padding-block: 32px 44px;
}

.site-footer .brand {
  color: var(--ink);
  font-size: 1rem;
}

.site-footer .brand svg {
  width: 26px;
  height: 26px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-weight: 600;
}

.footer-nav a {
  display: inline-block;
  padding-block: 8px;
  color: var(--ink);
}

/* ---------- Text pages: privacy policy, legal notice, support ---------- */

.doc {
  padding-block: 28px 64px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(1.875rem, 1.3rem + 2.8vw, 2.75rem);
  letter-spacing: -0.02em;
}

.doc .lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
}

.doc .updated {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* "This page is a translation." */
.doc .notice {
  margin-top: 20px;
  padding: 12px 16px;
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  background: var(--surface);
  font-size: 0.9375rem;
}

.doc h2 {
  margin-top: 48px;
  font-size: 1.4375rem;
}

.doc h3 {
  margin-top: 28px;
  font-size: 1.125rem;
}

.doc p,
.doc ul,
.doc ol,
.doc dl {
  margin-top: 14px;
}

.doc ul:not([class]),
.doc ol:not([class]) {
  padding-left: 1.35em;
}

.doc ul:not([class]) li,
.doc ol:not([class]) li {
  margin-top: 8px;
  padding-left: 4px;
}

.doc ul:not([class]) li::marker {
  color: var(--amber);
}

.doc ol:not([class]) li::marker {
  color: var(--amber-text);
  font-weight: 800;
}

/* The "in short" box. */
.summary {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary h2 {
  margin-top: 0;
  font-size: 1.1875rem;
}

/* One data flow: what leaves, where it goes, what for. */
.flow {
  margin-top: 18px;
  padding: 20px 22px 22px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.flow h3 {
  margin-top: 0;
}

.flow .to {
  margin-top: 4px;
  color: var(--amber-text);
  font-size: 0.9375rem;
  font-weight: 800;
}

/* A record: label on the left, value on the right. */
.card-list {
  padding: 6px 22px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-list > div {
  display: grid;
  gap: 2px;
  padding-block: 14px;
}

.card-list > div + div {
  border-top: 1px solid var(--line);
}

.card-list dt {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.address {
  font-style: normal;
}

.contact-card {
  margin-top: 28px;
  padding: 26px 22px;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-card .actions {
  margin-top: 20px;
}

.faq h3 {
  margin-top: 32px;
}

/* ---------- Language choice: the root page, seen only without the redirect ---------- */

.lang-choice {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px var(--gutter);
  text-align: center;
}

.lang-choice .brand {
  flex-direction: column;
  gap: 16px;
  margin: 0;
  font-size: 1.75rem;
}

.lang-choice .brand svg {
  width: 72px;
  height: 72px;
}

.lang-choice p {
  margin-top: 10px;
  color: var(--muted);
}

.lang-choice .actions {
  justify-content: center;
}

/* ---------- Wider screens ---------- */

@media (min-width: 600px) {
  :root {
    --gutter: 24px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .values {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 32px;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
  }

  .card-list > div {
    grid-template-columns: 13em 1fr;
    gap: 16px;
  }
}

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
  }

  .section {
    padding-block: 88px;
  }

  .hero {
    padding-block: 48px 88px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 56px;
  }

  .modes {
    grid-template-columns: repeat(6, 1fr);
  }

  .mode {
    grid-column: span 2;
  }

  /* Cinq cartes : trois, puis deux centrées. */
  .mode:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .correction .wrap {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 64px;
  }

  .legend {
    grid-template-columns: 1fr;
  }

  .effort .wrap {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 64px;
  }
}

@media print {
  .site-nav,
  .lang-switch,
  .skip {
    display: none;
  }

  body {
    background: #FFFFFF;
  }
}
