/* Police unique : Alegreya Sans, même style partout.
   Ce fichier doit être chargé EN DERNIER dans chaque page. */

@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/AlegreyaSans-Regular.woff2") format("woff2"),
       url("../fonts/AlegreyaSans-Regular.woff") format("woff"),
       url("../fonts/AlegreyaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --font-main: "Alegreya Sans", sans-serif;
  --text-size: 1rem;   /* ← la taille de TOUS les textes, à modifier ici */
}

html {
  font-size: 100%;
}

/* Même police, taille, graisse et interlignage pour tout le site */
*,
*::before,
*::after {
  font-family: var(--font-main) !important;
  font-size: var(--text-size) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* Exceptions voulues : titre de projet en gras, tags et passages en italique */
.project-title,
.about-page h1,
.about-page h2,
strong,
b {
  font-weight: 700 !important;
}

.project-tags,
.project-description a,
em,
i {
  font-style: italic !important;
}