/*
 * Virgile — identité commune au studio et au lecteur.
 *
 * Parti pris : la promenade. Le vert des jardins pour le fond et l'encre, une pointe d'abricot pour
 * ce qui se joue maintenant, des formes rondes et de gros boutons faciles à toucher. La photo du
 * lieu passe avant le dessin : l'interface s'efface autour d'elle.
 * Caractère : Figtree, du texte courant aux titres très gras.
 */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/static/figtree-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;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/static/figtree-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

:root {
  /* Couleurs. Les noms des jetons sont ceux de la première identité ; leurs rôles n'ont pas changé :
     « email » est la couleur principale (boutons, liens), « signal » l'accent du moment. */
  --pierre: #f2f5ec;
  --surface: #ffffff;
  --encre: #1e3a2a;
  --encre-2: #4f6355;
  --filet: #d5decb;
  --filet-fort: #b9c6b3;
  --email: #1e3a2a;
  --email-fonce: #14291d;
  --email-pale: #e4ecdc;
  --sur-email: #f2f5ec;
  --signal: #f58a63;
  --signal-fonce: #ee7347;
  --sur-signal: #1e3a2a;
  --vert: #1f6b4a;
  --vert-pale: #dcefe2;
  --alerte: #a8321c;
  --alerte-pale: #fbe6e0;
  --attention-pale: #fdeadf;
  /* Caractères */
  --titre: 'Figtree', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --texte: 'Figtree', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --mono: 'Figtree', 'Helvetica Neue', Arial, system-ui, sans-serif;
  /* Formes : rondes. Un rayon pour les champs, un pour les cartes ; les boutons sont des pilules. */
  --rayon: 14px;
  --rayon-carte: 22px;
  --ombre: 0 6px 24px rgb(30 58 42 / 0.14);
  /* Le plan des lieux : une carte claire, aux couleurs de terrain. */
  --carte-sol: #e9ede4;
  --carte-vert: #dce7d2;
  --carte-eau: #c3dce6;
  --carte-voie: #ffffff;
  --carte-chemin: #8a988b;
  --carte-bati: #cfd5c9;
  --carte-cour: #f4f6f0;
  --carte-monument: #1e3a2a;
  --carte-trait: #9aa59a;
  --carte-texte: #4f6355;
}

* {
  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: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

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

time,
.chiffre {
  font-variant-numeric: tabular-nums;
}

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

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

.plaque {
  display: inline-grid;
  place-items: center;
  background: var(--email-pale);
  color: var(--encre);
  border-radius: 999px;
  font-family: var(--titre);
  font-weight: 800;
  line-height: 1;
}

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

.plaque.signal {
  background: var(--signal);
  color: var(--sur-signal);
}

.plaque.blanche {
  background: var(--surface);
  color: var(--encre);
}

.plaque.creuse {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--encre);
}

/* Le nom du service : une pilule abricot, en minuscules. */
.marque {
  padding: 0.42em 0.95em 0.46em;
  background: var(--signal);
  color: var(--sur-signal);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  text-decoration: none;
}

.surtitre {
  font: 700 0.92rem/1.2 var(--texte);
  color: var(--encre-2);
}

/* --- Le plan des lieux : le dessin vient du serveur, ses couleurs d'ici (jour et nuit) --- */

.plan-lieux {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--carte-sol);
}

.plan-lieux svg {
  display: block;
  width: 100%;
  height: 100%;
  font-family: var(--texte);
}

.plan-lieux .c-sol {
  fill: var(--carte-sol);
}
.plan-lieux .c-vert {
  fill: var(--carte-vert);
}
.plan-lieux .c-eau {
  fill: var(--carte-eau);
}
.plan-lieux .c-cours {
  stroke: var(--carte-eau);
}
.plan-lieux .c-voies {
  stroke: var(--carte-voie);
}
.plan-lieux .c-chemins {
  stroke: var(--carte-chemin);
}
.plan-lieux .c-bati {
  fill: var(--carte-bati);
}
.plan-lieux .c-murs {
  stroke: var(--carte-trait);
}
.plan-lieux .c-emprise {
  fill: var(--carte-cour);
  stroke: var(--carte-trait);
}
.plan-lieux .c-monument {
  fill: var(--carte-monument);
  stroke: var(--carte-monument);
}
.plan-lieux .c-entree {
  fill: var(--signal);
  stroke: var(--carte-cour);
}
.plan-lieux .c-texte {
  fill: var(--carte-texte);
}
.plan-lieux .c-echelle {
  stroke: var(--carte-texte);
}
