/* Theorema
   Encre #14264A, or #B8862B, or clair #D4A548, ardoise #4A5874.
   L'or reste un filet, un point, un bouton sur aplat encre. */

@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/marcellus-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/marcellus-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-warm: #f4f6f8;
  --ink: #14264a;
  --ink-hover: #243e6e;
  --slate: #4a5874;
  --gold: #b8862b;
  --gold-light: #d4a548;
  --gold-hover: #e0b45c;
  --line: #d5dbe6;
  --band: #14264a;
  --footer-bg: #0c1733;
  --on-dark: #f4f1ea;
  --on-dark-soft: #d5dbe8;
  --serif: "Marcellus", "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --page: 76rem;
  --mark-dot: #b8862b;
  --mark-knock: var(--bg);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1730;
    --bg-warm: #141e36;
    --ink: #f3f0e8;
    --ink-hover: #ffffff;
    --slate: #c5cedf;
    --line: rgba(243, 240, 232, 0.18);
    --band: #1a3058;
    --footer-bg: #070d1c;
    --mark-dot: #d4a548;
    --mark-knock: var(--bg);
    color-scheme: dark;
  }

  .brand {
    --mark-dot: #d4a548;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body,
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

::selection {
  background: #14264a;
  color: #ffffff;
}

:focus {
  outline: none;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 40;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.55rem 0.9rem;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

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

.kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.kicker::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: var(--gold);
  flex: none;
}

h1,
.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 1.15rem + 2.6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem);
  line-height: 1.15;
}

.lede {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.55;
}

.platform {
  margin-top: 1rem;
  color: var(--slate);
  font-size: 0.9375rem;
}

.section {
  padding-block: clamp(3.25rem, 6vw, 5.75rem);
}

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

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.section__head p {
  margin-top: 0.85rem;
  max-width: 38rem;
  color: var(--slate);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--bg-warm);
  color: var(--ink);
  border-color: var(--ink);
}

.btn--gold {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #14264a;
}

.btn--gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: #14264a;
}

.btn__short {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  --mark-knock: var(--bg);
  --mark-dot: #b8862b;
}

.brand__mark {
  width: 2.45rem;
  height: 2.45rem;
  flex: none;
}

.brand__name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(0.92rem, 3.2vw, 1.2rem);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand__sign {
  display: block;
  margin-top: 0.38rem;
  color: var(--slate);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-header .brand__sign {
  display: none;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}

.lang {
  color: var(--slate);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.lang:hover {
  color: var(--ink);
  text-decoration: underline;
}

.lang__short {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 0.1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle__icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  display: inline-block;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1rem;
  height: 2px;
  background: currentColor;
}

.nav-toggle__icon::before {
  top: 3px;
}

.nav-toggle__icon::after {
  bottom: 3px;
}

.nav-open .nav-toggle__icon::before {
  top: 7px;
  transform: rotate(40deg);
}

.nav-open .nav-toggle__icon::after {
  bottom: 7px;
  transform: rotate(-40deg);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.35rem;
  padding-block: 0.55rem 0.7rem;
  border-top: 1px solid var(--line);
}

.nav__list a:not(.btn) {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
}

.nav__list a:not(.btn):hover,
.nav__list a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.nav__cta,
.nav__lang {
  display: none;
}

.hero {
  padding-block: clamp(2.5rem, 5vw, 5.25rem) clamp(3rem, 6vw, 5.5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.25rem, 4vw, 4rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem 1.25rem;
}

.figure {
  min-width: 0;
}

.figure dd {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.figure--date dd {
  font-size: clamp(1.35rem, 0.9rem + 1.2vw, 2rem);
}

.figure dd::before {
  content: "";
  display: block;
  width: 1.35rem;
  height: 2px;
  margin-bottom: 0.7rem;
  background: var(--gold);
}

.figure dt {
  margin-top: 0.45rem;
  color: var(--slate);
  font-size: 0.875rem;
  line-height: 1.35;
}

.points {
  counter-reset: point;
  display: grid;
  border-top: 1px solid var(--line);
}

.points li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-block: 1.45rem;
  border-bottom: 1px solid var(--line);
}

.points li::before {
  counter-increment: point;
  content: counter(point, decimal-leading-zero);
  padding-top: 0.7rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  background: linear-gradient(var(--gold), var(--gold)) 0 0 / 1.25rem 2px no-repeat;
}

.points h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.25;
}

.points p {
  margin-top: 0.4rem;
  color: var(--slate);
}

.contest-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.contest-table th {
  padding: 0.65rem 0.75rem 0.7rem 0;
  border-bottom: 2px solid var(--ink);
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.contest-table td,
.contest-table tbody th {
  padding: 0.95rem 0.75rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
  vertical-align: baseline;
}

.contest-table tbody th {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.contest-table a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.contest-table tbody tr:hover {
  background: var(--bg-warm);
}

.table-note {
  margin-top: 1.25rem;
}

.table-note a {
  font-weight: 500;
}

.band {
  background: var(--band);
  color: var(--on-dark);
  padding-block: clamp(3.25rem, 6vw, 5.5rem);
}

.band__grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.band .kicker {
  color: var(--gold-light);
}

.band .kicker::before {
  background: var(--gold-light);
}

.band h2 {
  max-width: 16ch;
}

.band p {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--on-dark-soft);
}

.band .btn {
  margin-top: 1.5rem;
}

.band__stat {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.band__stat span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.85;
}

.band__stat span::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-bottom: 0.85rem;
  background: var(--gold-light);
}

.site-footer {
  background: var(--footer-bg);
  color: var(--on-dark);
  border-top: 2px solid var(--gold-light);
  --mark-knock: var(--footer-bg);
  --mark-dot: #d4a548;
}

.site-footer .brand {
  color: #ffffff;
  --mark-knock: var(--footer-bg);
  --mark-dot: #d4a548;
}

.site-footer .brand__sign {
  color: var(--on-dark-soft);
}

.footer__grid {
  display: grid;
  gap: 2.25rem;
  padding-block: 3rem 2.25rem;
}

.footer__brand .brand {
  margin-bottom: 1.15rem;
}

.footer__brand p {
  max-width: 26rem;
  margin-top: 0.7rem;
  color: var(--on-dark-soft);
}

.footer__brand a {
  color: var(--on-dark);
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1.5rem;
  align-content: start;
}

.footer__links a {
  color: var(--on-dark);
  text-decoration: none;
}

.footer__links a:hover,
.site-footer .footer__brand a:hover,
.footer__aside a:hover {
  color: var(--gold-light);
}

.footer__aside {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}

.footer__aside a {
  color: var(--on-dark);
}

.footer__base {
  border-top: 1px solid rgba(244, 241, 234, 0.16);
  padding-block: 1rem 1.35rem;
  color: var(--on-dark-soft);
  font-size: 0.8125rem;
}

@media (max-width: 61.99rem) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav {
    display: none;
  }

  .js.nav-open .nav {
    display: block;
    max-height: calc(100dvh - 4.25rem);
    overflow: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 1.1rem;
  }

  .nav__list a:not(.btn) {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .nav__cta {
    display: block;
    padding-top: 1rem;
  }
}

@media (max-width: 30rem) {
  .site-header__tools .lang {
    display: none;
  }

  .nav__lang {
    display: block;
  }
}

@media (max-width: 40rem) {
  .site-header .btn__long {
    display: none;
  }

  .site-header .btn__short {
    display: inline;
  }

  .site-header .lang__long {
    display: none;
  }

  .site-header .lang__short {
    display: inline;
  }

  .site-header__tools .btn {
    padding-inline: 0.7rem;
  }
}

@media (max-width: 23rem) {
  .brand__mark {
    width: 2rem;
    height: 2rem;
  }

  .site-header__tools {
    gap: 0.35rem;
  }
}

@media (min-width: 46rem) {
  .points {
    grid-template-columns: 1fr 1fr;
  }

  .points li:nth-child(odd) {
    padding-right: 2rem;
    border-right: 1px solid var(--line);
  }

  .points li:nth-child(even) {
    padding-left: 2rem;
  }
}

@media (min-width: 50rem) {
  .brand__sign {
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
  }

  .site-header .brand__sign {
    display: block;
  }
}

@media (min-width: 62rem) {
  .brand__name {
    letter-spacing: 0.14em;
  }

  .brand__sign {
    letter-spacing: 0.28em;
  }
}

@media (min-width: 52rem) {
  .band__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(10rem, 0.6fr);
    gap: 3rem;
  }

  .band__stat {
    text-align: right;
  }

  .band__stat span::before {
    margin-left: auto;
  }

  .footer__grid {
    grid-template-columns: 1.3fr 1fr 0.7fr;
    gap: 3rem;
  }
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.9fr);
    align-items: start;
  }
}

@media (max-width: 42rem) {
  .contest-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .contest-table,
  .contest-table tbody,
  .contest-table tr,
  .contest-table td,
  .contest-table th {
    display: block;
    width: auto;
  }

  .contest-table tr {
    padding-block: 1.15rem;
    border-bottom: 1px solid var(--line);
  }

  .contest-table td,
  .contest-table tbody th {
    padding: 0.35rem 0;
    border: 0;
  }

  .contest-table tbody th {
    font-size: 1.45rem;
    padding-bottom: 0.55rem;
  }

  .contest-table td::before,
  .contest-table tbody th::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.12rem;
    color: var(--slate);
    font-family: var(--sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}
