/* Pulsar Lab : jetons de design
   Palette ardoise et sable, polices auto-hébergées.
   Les chemins des polices sont relatifs à ce fichier (marque/jetons/). Ils restent valides sur le site :
   Hugo publie marque/jetons sous /jetons/ et marque/polices sous /polices/ (config/_default/module.yaml). */

/* ---------- Polices ---------- */
/* Plages Unicode reprises de Fontsource : latin (français, anglais) et latin-ext (noms propres d'Europe centrale, etc.) */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../polices/sora-latin-400-normal.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: "Sora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../polices/sora-latin-ext-400-normal.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: "Sora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../polices/sora-latin-500-normal.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: "Sora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../polices/sora-latin-ext-500-normal.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: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../polices/sora-latin-600-normal.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: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../polices/sora-latin-ext-600-normal.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: "Urbanist"; font-style: normal; font-weight: 400; font-display: swap; src: url("../polices/urbanist-latin-400-normal.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: "Urbanist"; font-style: normal; font-weight: 400; font-display: swap; src: url("../polices/urbanist-latin-ext-400-normal.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: "Urbanist"; font-style: italic; font-weight: 400; font-display: swap; src: url("../polices/urbanist-latin-400-italic.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: "Urbanist"; font-style: italic; font-weight: 400; font-display: swap; src: url("../polices/urbanist-latin-ext-400-italic.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: "Urbanist"; font-style: normal; font-weight: 500; font-display: swap; src: url("../polices/urbanist-latin-500-normal.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: "Urbanist"; font-style: normal; font-weight: 500; font-display: swap; src: url("../polices/urbanist-latin-ext-500-normal.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: "Urbanist"; font-style: normal; font-weight: 600; font-display: swap; src: url("../polices/urbanist-latin-600-normal.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: "Urbanist"; font-style: normal; font-weight: 600; font-display: swap; src: url("../polices/urbanist-latin-ext-600-normal.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; }

/* Grec (Θ, Ψ, Δ, α...) : IBM Plex Sans en appoint. Ni Sora ni Urbanist n'ont de grec, les piles de polices basculent sur Plex Sans pour ces lettres. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../polices/ibm-plex-sans-greek-400-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../polices/ibm-plex-sans-greek-400-italic.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../polices/ibm-plex-sans-greek-500-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../polices/ibm-plex-sans-greek-600-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }


/* ---------- Palette et rôles ---------- */

:root {
  /* Palette ardoise et sable */
  --pl-ardoise-nuit: #1D262D;
  --pl-ardoise: #2C3842;
  --pl-ardoise-claire: #33404A;
  --pl-schiste: #4B5A66;
  --pl-lauze: #7D8C98;
  --pl-brume: #AAB6BF;
  --pl-nuage: #D9E0E5;
  --pl-craie: #F3F5F6;
  --pl-blanc: #FFFFFF;
  --pl-sable: #C9A46A;
  --pl-ocre: #8A6B33;

  /* Rôles sur fond clair (par défaut) */
  --pl-fond: var(--pl-craie);
  --pl-surface: var(--pl-blanc);
  --pl-texte: var(--pl-ardoise);
  --pl-texte-secondaire: var(--pl-schiste);
  --pl-accent: var(--pl-ocre);
  --pl-bordure: var(--pl-nuage);
  --pl-filet: var(--pl-lauze);

  /* Typographie */
  --pl-police-titre: "Sora", "IBM Plex Sans", system-ui, sans-serif;
  --pl-police-texte: "Urbanist", "IBM Plex Sans", system-ui, sans-serif;
  --pl-police-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; /* code seulement, police du système */
  --pl-espacement-logo: 0.16em;

  /* Formes et mise en page */
  --pl-rayon: 14px;
  --pl-rayon-grand: 22px;
  --pl-largeur-max: 1200px;
  --pl-opacite-filigrane: 0.06;
}

/* Sections sombres : héros, bandeaux, pied de page */
.pl-sombre,
.pl-nuit,
[data-pl-theme="sombre"] {
  --pl-fond: var(--pl-ardoise);
  --pl-surface: var(--pl-ardoise-claire);
  --pl-texte: var(--pl-craie);
  --pl-texte-secondaire: var(--pl-brume);
  --pl-accent: var(--pl-sable);
  --pl-bordure: #3E4C58;
  --pl-filet: var(--pl-lauze);
}

.pl-nuit {
  --pl-fond: var(--pl-ardoise-nuit);
}

/* Contrastes vérifiés (WCAG 2.x)
   Ardoise sur Craie 10,96 | Schiste sur Craie 6,50 | Ocre sur Craie 4,54 | Ocre sur Blanc 4,96
   Craie sur Ardoise 10,96 | Brume sur Ardoise 5,80 | Sable sur Ardoise 5,14
   Craie sur Ardoise nuit 14,04 | Brume sur Ardoise nuit 7,42 | Sable sur Ardoise nuit 6,58
   Craie sur Ardoise claire 9,73 | Brume sur Ardoise claire 5,15 | Sable sur Ardoise claire 4,56
   Ardoise sur Sable (bouton) 5,14
   Lauze sert aux filets et aux icônes seulement (3,16 sur Craie). */
