/* Charlotte Bard — polices hébergées sur le site (aucun appel à un service tiers).
   Fichiers dans ../fonts/ (licence SIL OFL 1.1 : Fraunces-OFL.txt, DM-Sans-OFL.txt, Ephesis-OFL.txt).
   Ils sont récupérés une fois par _chantier/outils/recuperer-polices.py, avec l'accord de Tom
   (8 fichiers depuis le 15/10/2026 : les 6 de Fraunces et DM Sans, plus les 2 d'Ephesis).
   Fraunces : polices variables (graisses 400 à 500, taille optique automatique).
   DM Sans : police variable (graisses 400 à 700).
   Ephesis : le prénom manuscrit du logotype (graisse 400, un seul style).
   Les 8 fichiers sont là (recuperer-polices.py --verifier : code 0 le 15/10/2026).
   Les pages préchargent fraunces-latin.woff2, dm-sans-latin.woff2 et ephesis-latin.woff2 (21 Ko).
   unicode-range recopiés de la feuille Google du 15/10/2026 (latin-ext : U+20AD-20C4).
   ephesis-latin-ext.woff2 n'est demandé que pour un caractère latin étendu, absent de « Charlotte ». */

/* ---------- Fraunces, romain ---------- */
/* latin-ext */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/fraunces-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/fraunces-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;
}

/* ---------- Fraunces, italique (le mot fort des titres) ---------- */
/* latin-ext */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/fraunces-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/fraunces-italic-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;
}

/* ---------- DM Sans ---------- */
/* latin-ext */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/dm-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/dm-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;
}

/* ---------- Ephesis (le prénom manuscrit du logotype, carte de visite du 15/10/2026) ----------
   Licence SIL OFL 1.1 (Ephesis-OFL.txt). Un seul style, droit, graisse 400.
   Affichage « block » (et préchargement) : le prénom n'apparaît jamais en Georgia pour basculer ensuite.
   Il reste invisible au plus 3 s si la police tarde, puis la police de repli prend le relais. */
/* latin-ext */
@font-face {
  font-family: "Ephesis";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(../fonts/ephesis-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Ephesis";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(../fonts/ephesis-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;
}

/* ---------- Polices de repli ajustées (moins de saut au chargement) ----------
   Les piles de styles.css les placent juste après la vraie police :
     "Fraunces", "Fraunces Repli", Georgia, serif
     "DM Sans", "DM Sans Repli", system-ui, -apple-system, "Segoe UI", sans-serif
   VALEURS À CALIBRER avec _chantier/qualite/banc-polices.html quand les woff2 seront là.
   Règle : size-adjust = largeur vraie police / largeur repli brut ;
           ascent-override = ascent de la vraie police / size-adjust (idem descent). */
@font-face {
  font-family: "Fraunces Repli";
  font-weight: 400 500;
  src: local("Georgia");
  /* départ : ascent 0,978 et descent 0,255 de Fraunces (mesurés) ; largeur : la Fraunces 600
     disponible en local est 8,5 % plus large que Georgia, on part de 106 % pour la graisse 500 */
  size-adjust: 106%;
  ascent-override: 92.3%;
  descent-override: 24.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Fraunces Repli";
  font-style: italic;
  font-weight: 400 500;
  src: local("Georgia Italic"), local("Georgia-Italic");
  size-adjust: 106%;
  ascent-override: 92.3%;
  descent-override: 24.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "DM Sans Repli";
  font-weight: 400 500;
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  /* départ : ascent 0,992 et descent 0,310 de DM Sans ; largeur ≈ +4,5 % par rapport à Arial */
  size-adjust: 104.5%;
  ascent-override: 94.9%;
  descent-override: 29.7%;
  line-gap-override: 0%;
}
/* Prénom manuscrit : Georgia italique ramenée à la largeur d'Ephesis (« Charlotte » : 92 px contre
   132 px à 31 px de corps, mesuré par _chantier/identite-carte/nav.py). La hauteur de ligne du
   logotype est fixe : seule la largeur compte. Pile : "Ephesis", "Ephesis Repli", "Fraunces"… */
@font-face {
  font-family: "Ephesis Repli";
  font-style: italic;
  font-weight: 400;
  src: local("Georgia Italic"), local("Georgia-Italic");
  size-adjust: 70%;
}
/* Gras (boutons, <strong>) : un vrai gras plutôt qu'un gras simulé */
@font-face {
  font-family: "DM Sans Repli";
  font-weight: 600 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold");
  size-adjust: 104.5%;
  ascent-override: 94.9%;
  descent-override: 29.7%;
  line-gap-override: 0%;
}
