/* Feuille de style unique du site. Jetons : docs/DESIGN.md (couleurs du kit logo v1). */

@font-face {
  font-family: 'Inter';
  src: url('/polices/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/polices/inter-latin-wght-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Jura';
  src: url('/polices/jura-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bleu-nuit: #1f3963;
  --bleu-profond: #2d5592;
  --bleu-moyen: #6a94ce;
  --bleu-clair: #c3ddfb;

  --fond: #ffffff;
  --surface: #f4f6fa;
  --encre: #1d2433;
  --encre-douce: #667085;
  --trait: #e3e8f0;
  --titre: var(--bleu-nuit);
  --lien: var(--bleu-profond);
  --surtitre: var(--bleu-profond);

  --texte: 'Inter', system-ui, sans-serif;
  --titres: 'Jura', 'Inter', system-ui, sans-serif;
  --largeur: 44rem;
  --rayon: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #111a2b;
    --surface: #18243a;
    --encre: #e6ebf3;
    --encre-douce: #a3adbf;
    --trait: #2a3852;
    --titre: #ffffff;
    --lien: var(--bleu-clair);
    --surtitre: var(--bleu-moyen);
  }
}

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 1rem/1.6 var(--texte);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.entete,
.texte,
.pied {
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: 1rem;
}

.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  width: 150px;
  height: auto;
}

.langue {
  font-size: 0.9rem;
}

.brouillon {
  width: calc(min(100%, var(--largeur)) - 2rem);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  background: var(--bleu-clair);
  color: var(--bleu-nuit);
  border-radius: var(--rayon);
  font-size: 0.9rem;
  font-weight: 600;
}

.texte {
  padding-block: 1rem 3rem;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--titres);
  color: var(--titre);
  line-height: 1.25;
  scroll-margin-top: 1rem;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--trait);
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}

a {
  color: var(--lien);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--bleu-moyen);
  outline-offset: 2px;
  border-radius: 2px;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-left: 3px solid var(--bleu-moyen);
  border-radius: 0 var(--rayon) var(--rayon) 0;
}

code {
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid var(--trait);
  vertical-align: top;
}

.pied {
  border-top: 1px solid var(--trait);
  padding-block: 1.5rem 2.5rem;
  color: var(--encre-douce);
  font-size: 0.9rem;
}

.pied ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.pied li + li {
  margin-top: 0;
}

.pied p {
  margin: 0;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.6rem;
  }
  .logo img {
    width: 130px;
  }
}
