/*
 * Voxa — identité commune au studio et au lecteur.
 *
 * Parti pris : la signalétique du patrimoine. La plaque émaillée (bleu, liseré blanc, rivets) porte
 * le nom et les numéros d'arrêt ; le jaune signal désigne ce qui se joue maintenant ; le bleu
 * d'architecte sert aux plans. Le reste se tait : pierre claire, encre, filets.
 * Caractères : Bricolage Grotesque pour les titres, Atkinson Hyperlegible pour le texte, dessiné
 * pour rester lisible par tous les yeux, en plein soleil comme dans une nef sombre.
 */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/static/bricolage-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/static/bricolage-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/static/atkinson-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/static/atkinson-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/static/atkinson-mono-latin.woff2') format('woff2');
}

:root {
  /* Couleurs */
  --pierre: #f1f2ee;
  --surface: #ffffff;
  --encre: #0f1730;
  --encre-2: #485170;
  --filet: #d2d6de;
  --email: #1b3fa6;
  --email-fonce: #132c78;
  --email-pale: #e6ebfa;
  --sur-email: #ffffff;
  --signal: #ffc81f;
  --sur-signal: #1c1600;
  --vert: #0b6b4d;
  --vert-pale: #dff1e9;
  --alerte: #b92d1a;
  --alerte-pale: #fbe6e1;
  --attention-pale: #fff3cc;
  /* Caractères */
  --titre: 'Bricolage Grotesque', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --texte: 'Atkinson Hyperlegible Next', Verdana, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Atkinson Hyperlegible Mono', ui-monospace, Menlo, Consolas, monospace;
  /* Formes : des angles nets, comme une tôle. */
  --rayon: 4px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--pierre);
  color: var(--encre);
  font: 400 17px/1.55 var(--texte);
}

h1,
h2,
h3 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--email);
  text-underline-offset: 0.18em;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--encre);
}

/* --- La plaque : nom du service, numéros d'arrêt --- */

.plaque {
  display: inline-grid;
  place-items: center;
  position: relative;
  background: var(--email);
  color: var(--sur-email);
  border-radius: 3px;
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1;
  /* Le liseré blanc, en retrait du bord comme sur une plaque de rue. */
  box-shadow:
    inset 0 0 0 0.18em var(--email),
    inset 0 0 0 0.25em var(--sur-email);
}

.plaque.numero {
  width: 2.4em;
  height: 2.4em;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.plaque.signal {
  background: var(--signal);
  color: var(--sur-signal);
  box-shadow:
    inset 0 0 0 0.18em var(--signal),
    inset 0 0 0 0.25em var(--sur-signal);
}

.plaque.blanche {
  background: var(--sur-email);
  color: var(--email);
  box-shadow:
    inset 0 0 0 0.18em var(--sur-email),
    inset 0 0 0 0.25em var(--email);
}

.plaque.creuse {
  background: transparent;
  color: var(--email);
  box-shadow: inset 0 0 0 0.12em var(--email);
}

.marque {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.05em 0.46em;
  font-size: 1.02rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Deux rivets, à gauche et à droite. */
.marque::before,
.marque::after {
  content: '';
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: var(--sur-email);
  opacity: 0.85;
}

.surtitre {
  font: 700 0.78rem/1.2 var(--texte);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--email);
}
