/* ==========================================================================
   EFMB · Fédération européenne des respirateurs buccaux
   One hand-written stylesheet. No framework, no build step. Mobile first.

    1. Tokens            5. Language switcher    9. Footer
    2. Base              6. Buttons             10. Toast
    3. Utilities         7. Home page           11. Motion, contrast, print
    4. Header & nav      8. Inner pages
   ========================================================================== */

/* 1. Tokens -------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* The two colours of the European flag, plus a few deeper blues. */
  --eu-blue: #003399;
  --eu-gold: #ffcc00;
  --gold-soft: #ffd94d;
  --navy-950: #000d29;
  --navy-900: #00143d;
  --navy-800: #001f5c;

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-soft: #f3f6fc;
  --surface: #ffffff;
  --surface-2: #f6f8fd;
  --text: #0a1433;
  --text-muted: #4a5677;
  --border: #dce3f1;
  --accent: var(--eu-blue);
  --accent-soft: rgb(0 51 153 / .08);
  --on-accent: #ffffff;
  --link: var(--eu-blue);
  --link-hover: var(--navy-800);
  --ring: var(--eu-blue);
  --header-bg: rgb(255 255 255 / .86);
  --shadow-sm: 0 1px 2px rgb(0 20 61 / .06);
  --shadow: 0 1px 2px rgb(0 20 61 / .05), 0 14px 34px -10px rgb(0 20 61 / .18);
  --shadow-lg: 0 28px 70px -18px rgb(0 20 61 / .32);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4rem;

  --star: polygon(50% 0%, 61.2% 34.5%, 97.6% 34.5%, 68.2% 55.9%, 79.4% 90.5%, 50% 69.1%, 20.6% 90.5%, 31.8% 55.9%, 2.4% 34.5%, 38.8% 34.5%);
}

@media (min-width: 60em) {
  :root { --header-h: 4.5rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050b1f;
    --bg-soft: #08122c;
    --surface: #0c1834;
    --surface-2: #101e40;
    --text: #e9edf8;
    --text-muted: #a9b3d0;
    --border: #1d2b54;
    --accent: var(--eu-gold);
    --accent-soft: rgb(255 204 0 / .12);
    --on-accent: var(--navy-900);
    --link: var(--gold-soft);
    --link-hover: #ffe680;
    --ring: var(--eu-gold);
    --header-bg: rgb(5 11 31 / .84);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 34px -10px rgb(0 0 0 / .6);
    --shadow-lg: 0 28px 70px -18px rgb(0 0 0 / .75);
  }
}

/* Deep-blue bands (hero, page headers, footer) keep light text in both themes. */
.on-dark {
  --ring: var(--eu-gold);
  --link: var(--gold-soft);
  --link-hover: #ffe680;
  color: #ffffff;
}

/* 2. Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: .14em;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

::selection {
  background: var(--eu-gold);
  color: var(--navy-900);
}

button {
  font: inherit;
}

/* 3. Utilities ----------------------------------------------------------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: var(--eu-gold);
  color: var(--navy-900);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-250%);
}

.skip-link:focus {
  transform: none;
  outline-color: var(--navy-900);
}

.skip-link:hover {
  color: var(--navy-900);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.25rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: .8rem;
  height: .8rem;
  background: currentColor;
  clip-path: var(--star);
}

.on-dark .eyebrow {
  color: var(--eu-gold);
}

/* 4. Header & navigation ------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}

.site-header.is-scrolled,
.site-header.nav-open {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  padding: .25rem .5rem .25rem 0;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  flex: none;
  width: 3.1rem;
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}

.brand:hover .brand__mark {
  transform: scale(1.06) rotate(-3deg);
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.brand__full {
  display: none;
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
}

@media (min-width: 75em) {
  .brand__full { display: block; }
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}

.site-nav a:hover {
  background: var(--bg-soft);
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-toggle,
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .5rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}

.nav-toggle:hover,
.lang__toggle:hover,
.nav-toggle[aria-expanded="true"],
.lang__toggle[aria-expanded="true"] {
  border-color: var(--accent);
}

.nav-toggle__bars {
  position: relative;
  width: 1.125rem;
  height: .875rem;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  border-top: 2px solid currentColor;
  border-radius: 2px;
  transition: transform .25s, opacity .2s, top .25s;
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: calc(50% - 1px); }
.nav-toggle__bars::after { top: calc(100% - 2px); }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}

@media (max-width: 59.99em) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .75rem var(--gutter) 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .site-header:not(.nav-open) .site-nav {
    display: none;
  }

  .site-nav ul {
    display: grid;
    gap: .25rem;
    width: min(100%, var(--container));
    margin-inline: auto;
  }

  .site-nav a {
    min-height: 3.25rem;
    padding-inline: 1rem;
    border-radius: 14px;
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 59.99em) {
  .site-header.nav-open .site-nav {
    animation: drop-in .22s ease-out;
  }
}

@media (min-width: 60em) {
  .nav-toggle {
    display: none;
  }

  .site-nav ul {
    display: flex;
    gap: .15rem;
  }

  .site-nav {
    margin-right: .5rem;
  }
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-.5rem); }
}

/* 5. Language switcher --------------------------------------------------- */
/* Fifty languages on offer; every one of them is available in French.       */

.lang {
  position: relative;
}

.lang__toggle {
  gap: .4rem;
  padding-inline: .8rem .7rem;
  letter-spacing: .04em;
}

.lang__toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.lang__chevron {
  transition: transform .2s;
}

.lang__toggle[aria-expanded="true"] .lang__chevron {
  transform: rotate(180deg);
}

.lang__panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + .6rem);
  right: 0;
  width: min(31rem, 100vw - 2 * var(--gutter));
  max-height: min(38rem, 100vh - var(--header-h) - 1.5rem);
  max-height: min(38rem, 100dvh - var(--header-h) - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lang__panel[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .lang__panel:not([hidden]) {
    animation: drop-in .2s ease-out;
  }
}

@media (max-width: 59.99em) {
  .lang {
    position: static;
  }

  .lang__panel {
    top: calc(100% + .5rem);
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
  }
}

.lang__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.lang__group + .lang__group {
  margin-top: 1.1rem;
}

.lang__label {
  margin: 0 0 .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lang__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.1rem, 1fr));
  gap: .375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang__option {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 .25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}

.lang__option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.lang__option:active {
  transform: scale(.95);
}

.lang__option[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.lang__foot {
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-muted);
}

.lang__hint {
  min-height: 1.5em;
  margin: 0 0 .2rem;
  font-weight: 700;
  color: var(--text);
}

.lang__note {
  margin: 0;
}

/* 6. Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .8rem 1.45rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  transition: transform .2s;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--gold {
  background: var(--eu-gold);
  color: var(--navy-900);
  box-shadow: 0 12px 30px -12px rgb(255 204 0 / .7);
}

.btn--gold:hover {
  background: var(--gold-soft);
  color: var(--navy-900);
}

.btn--ghost {
  border-color: rgb(255 255 255 / .5);
  color: #ffffff;
}

.btn--ghost:hover {
  border-color: #ffffff;
  background: rgb(255 255 255 / .1);
  color: #ffffff;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--link-hover);
  color: var(--on-accent);
}

/* 7. Home page ----------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(6rem, 12vw, 9.5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(255 204 0 / .16), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgb(31 79 196 / .55), transparent 60%),
    linear-gradient(160deg, #003399 0%, #00256f 55%, #00143d 100%);
}

.hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 60em) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 3rem;
  }
}

.hero__title {
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 1.3rem + 5.2vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
}

.hero__accent {
  display: block;
  color: var(--eu-gold);
}

.hero__lead {
  max-width: 34ch;
  margin-bottom: 2rem;
  font-size: clamp(1.15rem, 1rem + .65vw, 1.45rem);
  line-height: 1.5;
  color: rgb(255 255 255 / .88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero__art {
  justify-self: center;
  width: min(100%, 27rem);
}

@media (max-width: 59.99em) {
  .hero__art {
    order: -1;
    width: min(62vw, 17rem);
  }
}

.hero__wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(2.5rem, 7vw, 6rem);
}

.hero__wave path {
  fill: var(--bg);
}

/* The animated seal: the ring of text turns, the mouth breathes, the
   breath ripples out across the twelve stars. */
.seal {
  width: 100%;
  height: auto;
  overflow: visible;
}

.seal__text {
  font: 700 16px/1 var(--font-sans);
  letter-spacing: .2em;
  fill: var(--eu-gold);
}

.seal__ring {
  transform-origin: 200px 200px;
  animation: seal-spin 90s linear infinite;
}

.seal__ripple {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: seal-ripple 6s cubic-bezier(.2, .6, .35, 1) infinite;
}

.seal__ripple--2 { animation-delay: 2s; }
.seal__ripple--3 { animation-delay: 4s; }

.seal__mouth {
  transform-box: fill-box;
  transform-origin: center;
  animation: seal-breathe 6s ease-in-out infinite;
}

.seal__stars use {
  animation: seal-twinkle 6s ease-in-out infinite;
}

.seal__stars use:nth-child(2) { animation-delay: .5s; }
.seal__stars use:nth-child(3) { animation-delay: 1s; }
.seal__stars use:nth-child(4) { animation-delay: 1.5s; }
.seal__stars use:nth-child(5) { animation-delay: 2s; }
.seal__stars use:nth-child(6) { animation-delay: 2.5s; }
.seal__stars use:nth-child(7) { animation-delay: 3s; }
.seal__stars use:nth-child(8) { animation-delay: 3.5s; }
.seal__stars use:nth-child(9) { animation-delay: 4s; }
.seal__stars use:nth-child(10) { animation-delay: 4.5s; }
.seal__stars use:nth-child(11) { animation-delay: 5s; }
.seal__stars use:nth-child(12) { animation-delay: 5.5s; }

@keyframes seal-spin {
  to { transform: rotate(1turn); }
}

@keyframes seal-ripple {
  0% { transform: scale(.6); opacity: 0; }
  12% { opacity: .5; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes seal-breathe {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.05); }
}

@keyframes seal-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 42rem;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.3vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.section-head .eyebrow {
  margin-bottom: 1rem;
}

.intro__text {
  max-width: 38ch;
  margin: 0 auto;
  font-size: clamp(1.35rem, 1rem + 1.7vw, 2.2rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.02em;
  text-align: center;
}

.intro__text::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1.5rem;
  background: var(--eu-gold);
  clip-path: var(--star);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 52em) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: clamp(1.25rem, 3vw, 2rem) 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat__value {
  font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.stat__label {
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: clamp(.75rem, 2vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  height: 100%;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.card:has(a:focus-visible) {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.card:has(a:focus-visible) a:focus-visible {
  outline: none;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 15px;
  background: var(--eu-blue);
  color: var(--eu-gold);
}

.card__icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.card h3 {
  margin: .35rem 0 0;
  font-size: 1.3rem;
}

.card h3 a {
  color: var(--text);
  text-decoration: none;
}

.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.card__arrow {
  align-self: flex-end;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: auto;
  color: var(--accent);
  transition: transform .2s;
}

.card:hover .card__arrow {
  transform: translateX(4px);
}

/* 8. Inner pages --------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.25rem, 6vw, 4.25rem) clamp(5.5rem, 11vw, 8rem);
  background:
    radial-gradient(40rem 22rem at 92% 0%, rgb(255 204 0 / .14), transparent 60%),
    linear-gradient(160deg, #003399 0%, #00205b 70%, #00143d 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(-9rem, -6vw, -3rem);
  width: clamp(15rem, 34vw, 27rem);
  aspect-ratio: 1;
  background: url("/assets/img/stars-ring.svg") center / contain no-repeat;
  opacity: .2;
  transform: translateY(-46%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .6rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  font-weight: 600;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.breadcrumb li + li::before {
  content: "";
  width: .45em;
  height: .45em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: .6;
  transform: rotate(45deg);
}

.breadcrumb a {
  color: rgb(255 255 255 / .85);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--eu-gold);
}

.page-body {
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.paper {
  position: relative;
  max-width: 48rem;
  margin-top: clamp(-4.5rem, -8vw, -3.25rem);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.paper::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.5rem, 5vw, 3.5rem);
  width: 4rem;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--eu-gold);
}

.paper__actions {
  margin-top: 2rem;
}

/* Long-form text translated from content/*.md */
.prose {
  font-size: clamp(1.05rem, 1rem + .25vw, 1.18rem);
  line-height: 1.75;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose > p:first-child {
  font-size: 1.17em;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -.01em;
}

.prose h2 {
  margin: 2em 0 .6em;
  font-size: 1.6em;
  font-weight: 800;
}

.prose h3 {
  margin: 1.7em 0 .5em;
  font-size: 1.25em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.5em;
}

.prose li {
  margin: .45em 0;
  padding-left: .35em;
}

.prose ul {
  list-style-type: "\2605";
}

.prose li::marker {
  color: var(--accent);
}

.prose ol li::marker {
  font-weight: 700;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: .25em 0 .25em 1.25em;
  border-left: 4px solid var(--eu-gold);
  font-style: italic;
  color: var(--text-muted);
}

.prose hr {
  height: 1px;
  margin: 2.5em 0;
  border: 0;
  background: var(--border);
}

.prose img {
  border-radius: var(--radius);
}

.prose table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: .95em;
}

.prose th,
.prose td {
  padding: .6em .75em;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.prose a[href^="http"]::after {
  content: "\00a0\2197";
  content: "\00a0\2197" / " (site externe)";
  font-size: .85em;
}

/* 9. Footer -------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  background: linear-gradient(180deg, #00205b 0%, #00143d 100%);
  color: rgb(255 255 255 / .85);
}

.site-footer__inner {
  position: relative;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 52em) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  flex: none;
  width: 4.25rem;
}

.footer-brand__name {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

.footer-motto {
  margin: .25rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--eu-gold);
}

.footer-meta {
  display: grid;
  gap: .35rem;
  font-size: .875rem;
}

.footer-meta p {
  margin: 0;
}

@media (min-width: 52em) {
  .footer-meta { text-align: right; }
}

/* 10. Toast -------------------------------------------------------------- */

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  width: max-content;
  max-width: min(28rem, 100vw - 2rem);
  padding: .95rem 1.15rem;
  border: 1px solid rgb(255 204 0 / .4);
  border-radius: 16px;
  background: var(--navy-900);
  color: #ffffff;
  font-size: .95rem;
  line-height: 1.45;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, calc(100% + 2rem));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s;
  pointer-events: none;
}

.toast::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: .1rem;
  background: var(--eu-gold);
  clip-path: var(--star);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 11. Motion, contrast, print -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .seal__ring,
  .seal__mouth,
  .seal__stars use {
    animation: none !important;
  }

  .seal__ripple {
    animation: none !important;
    opacity: .18;
  }

  .seal__ripple--2,
  .seal__ripple--3 {
    display: none;
  }
}

@media (forced-colors: active) {
  .btn,
  .card,
  .stat,
  .paper,
  .toast,
  .lang__panel {
    border: 1px solid CanvasText;
  }

  .lang__option[aria-current="true"],
  .site-nav a[aria-current="page"] {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }

  .eyebrow::before,
  .toast::before,
  .intro__text::before {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .toast,
  .hero__art,
  .hero__wave,
  .hero__actions {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .hero,
  .page-hero {
    padding: 0 0 1rem;
    background: none;
    color: #000000;
  }

  .page-hero::after {
    display: none;
  }

  .hero__accent,
  .hero__lead,
  .eyebrow,
  .breadcrumb a,
  .breadcrumb [aria-current="page"] {
    color: #000000;
  }

  .paper {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .paper::before {
    display: none;
  }

  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
  }
}
