/*
 * Playfair Display auto-hébergée (fichiers variables woff2, axe wght 400–900,
 * les mêmes sous-ensembles latin et latin-ext que fonts.gstatic.com).
 * Graisses 400, 500, 600 et 700, romain et italique : un seul fichier par style.
 *
 * La police de secours reprend les métriques de Playfair (échantillon
 * « aaabcdeeeefghiijklmnnoopqrrssttuvwxyz » + espaces, méthode fontpie /
 * Aurora) pour que le swap ne change ni la hauteur de ligne ni la largeur
 * moyenne. Chrome retient le dernier @font-face dont le local() existe :
 * Georgia en dernier (macOS, Windows), puis Noto Serif, puis Times /
 * Liberation Serif.
 */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/playfair-display-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;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/playfair-display-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: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/playfair-display-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;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/playfair-display-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;
}

/* Times New Roman, et Liberation Serif qui en reprend les métriques. */
@font-face {
  font-family: "Playfair Display Fallback";
  font-style: normal;
  font-weight: 400 900;
  src: local("Times New Roman"), local("Liberation Serif");
  ascent-override: 97.38%;
  descent-override: 22.59%;
  line-gap-override: 0%;
  size-adjust: 111.11%;
}

@font-face {
  font-family: "Playfair Display Fallback";
  font-style: italic;
  font-weight: 400 900;
  src: local("Times New Roman Italic"), local("Liberation Serif Italic");
  ascent-override: 102.38%;
  descent-override: 23.75%;
  line-gap-override: 0%;
  size-adjust: 105.69%;
}

/* Noto Serif : serif par défaut sur Linux et Android. */
@font-face {
  font-family: "Playfair Display Fallback";
  font-style: normal;
  font-weight: 400 900;
  src: local("Noto Serif Regular"), local("NotoSerif-Regular");
  ascent-override: 116.07%;
  descent-override: 26.92%;
  line-gap-override: 0%;
  size-adjust: 93.22%;
}

@font-face {
  font-family: "Playfair Display Fallback";
  font-style: italic;
  font-weight: 400 900;
  src: local("Noto Serif Italic"), local("NotoSerif-Italic");
  ascent-override: 119.01%;
  descent-override: 27.61%;
  line-gap-override: 0%;
  size-adjust: 90.92%;
}

/* Georgia : secours historique du site (macOS, Windows). Dernier, donc prioritaire. */
@font-face {
  font-family: "Playfair Display Fallback";
  font-style: normal;
  font-weight: 400 900;
  src: local("Georgia");
  ascent-override: 105.82%;
  descent-override: 24.55%;
  line-gap-override: 0%;
  size-adjust: 102.25%;
}

@font-face {
  font-family: "Playfair Display Fallback";
  font-style: italic;
  font-weight: 400 900;
  src: local("Georgia Italic"), local("Georgia-Italic");
  ascent-override: 115.10%;
  descent-override: 26.70%;
  line-gap-override: 0%;
  size-adjust: 94%;
}
