/* Socle commun aux trois pages (console, guide, référence) : polices, couleurs, en-tête.
   Couleurs et police de la charte Figen ; rouge, vert, ambre et violet ne servent qu'aux états. */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("polices/public-sans-latin-ext.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: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("polices/public-sans-latin.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 {
  --bleu-nuit: #04142b;
  --bleu-900: #07234b;
  --bleu-800: #0a3570;
  --bleu-700: #0e4695;
  --bleu-600: #1158bb;
  --bleu-500: #1569e0;
  --or: #f5c13d;
  --cyan: #0dd3d3;
  --clair: #ecfefe;

  --fond: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --trait: #d5dce8;
  --trait-fort: #aeb9cc;
  --texte: #04142b;
  --texte-2: #33435f;
  --texte-3: #56657f;

  --rouge: #b42318;
  --rouge-fond: #fdecea;
  --rouge-trait: #f1b0a9;
  --vert: #0b6b43;
  --vert-fond: #e1f5ea;
  --vert-trait: #94d3b0;
  --ambre: #7a4f00;
  --ambre-fond: #fff4d6;
  --ambre-trait: #edc869;
  --bleu-fond: #e8f0fc;
  --bleu-trait: #b5ccf3;
  --violet: #5335a3;
  --violet-fond: #f0ebfb;
  --violet-trait: #cbbcee;

  --police: "Public Sans", Arial, Helvetica, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --rayon: 8px;
  --rayon-petit: 5px;
  --entete: 48px;
  --ombre: 0 1px 2px rgb(4 20 43 / 6%), 0 2px 8px rgb(4 20 43 / 5%);
}

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

html {
  scroll-padding-top: calc(var(--entete) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 0.875rem;
  line-height: 1.5;
}

a {
  color: var(--bleu-600);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--bleu-800);
}

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

main:focus {
  outline: none;
}

code,
kbd,
pre,
samp {
  font-family: var(--mono);
  font-size: 0.92em;
}

[hidden] {
  display: none !important;
}

.evitement {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 30;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: var(--rayon-petit);
  box-shadow: var(--ombre);
}

.evitement:focus {
  top: 8px;
}

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

/* --------------------------------------------------------------- en-tête commun */

.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--entete);
  padding: 0 20px;
  background: var(--bleu-nuit);
  color: #fff;
}

.marque {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.marque:hover {
  color: #fff;
}

.marque-nom {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.marque-produit {
  padding-left: 10px;
  border-left: 1px solid rgb(255 255 255 / 30%);
  color: #c9d6ec;
  font-size: 0.8125rem;
}

.entete-pages {
  display: flex;
  align-self: stretch;
  gap: 4px;
}

.entete-pages a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 3px solid transparent;
  border-top: 3px solid transparent;
  color: #c9d6ec;
  font-weight: 500;
  text-decoration: none;
}

.entete-pages a:hover {
  color: #fff;
}

.entete-pages a[aria-current="page"] {
  border-bottom-color: var(--or);
  color: #fff;
}

.entete .entete-pages a:focus-visible,
.entete .marque:focus-visible {
  outline-color: var(--or);
}

.entete-etat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}

@media (max-width: 760px) {
  .entete {
    gap: 12px;
    padding: 0 12px;
  }

  .marque-produit {
    display: none;
  }
}
