/*
 * Jingi Agency : polices auto-hébergées (remplace fonts.googleapis.com).
 * Sous-ensembles WOFF2 générés avec fontTools (pyftsubset) depuis github.com/google/fonts.
 * Licence SIL Open Font License 1.1 : /fonts/OFL-*.txt.
 * Mêmes noms de famille qu'avec Google Fonts : "Shippori Mincho" (titres) et "Zen Kaku Gothic New" (texte).
 * unicode-range = caractères réellement présents dans chaque fichier : un fichier n'est téléchargé que si la page
 * affiche l'un de ses caractères (ex. le fichier kanji ne sert qu'aux numéros d'étapes 一二三四五).
 * Thaï (Anuphan) : /css/fonts-th.css, à charger en plus sur /th/ uniquement.
 */

/* ---------- Shippori Mincho (titres, --f-display) ---------- */
/* latin + latin-ext utile au français */
@font-face {
  font-family: "Shippori Mincho";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/shippori-mincho-400-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0308, U+2002, U+2009, U+200B, U+2010-2011, U+2013-2015, U+2018-201A, U+201C-201E, U+2020-2022, U+2025-2026, U+202F, U+2032-2033, U+2039-203C, U+2044, U+2047-2049, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Shippori Mincho";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/shippori-mincho-500-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0308, U+2002, U+2009, U+200B, U+2010-2011, U+2013-2015, U+2018-201A, U+201C-201E, U+2020-2022, U+2025-2026, U+202F, U+2032-2033, U+2039-203C, U+2044, U+2047-2049, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* kanji présents sur le site : 一 二 三 四 五 (numéros des étapes) */
@font-face {
  font-family: "Shippori Mincho";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/shippori-mincho-400-kanji.woff2") format("woff2");
  unicode-range: U+4E00, U+4E09, U+4E8C, U+4E94, U+56DB;
}

/* ---------- Zen Kaku Gothic New (texte, --f-text) ---------- */
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/zen-kaku-gothic-new-400-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+0174-0178, U+02C6, U+02DA, U+02DC, U+0308, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2010-2011, U+2013-2014, U+2016, U+2018-201A, U+201C-201E, U+2022, U+2025-2026, U+202F-2030, U+2039-203B, U+2044, U+20AC, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/zen-kaku-gothic-new-500-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+0174-0178, U+02C6, U+02DA, U+02DC, U+0308, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2010-2011, U+2013-2014, U+2016, U+2018-201A, U+201C-201E, U+2022, U+2025-2026, U+202F-2030, U+2039-203B, U+2044, U+20AC, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/zen-kaku-gothic-new-700-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+0174-0178, U+02C6, U+02DA, U+02DC, U+0308, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2010-2011, U+2013-2014, U+2016, U+2018-201A, U+201C-201E, U+2022, U+2025-2026, U+202F-2030, U+2039-203B, U+2044, U+20AC, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- « Anuphan Label » : libellé « ไทย » du sélecteur de langue sur les pages FR/EN ----------
 * Mini-fichier de 3 glyphes (Anuphan 400). Famille distincte exprès : elle ne sert que là où site.css la nomme,
 * par ex. .lang [data-lang="th"] { font-family: "Anuphan Label", var(--f-text); }
 * Anuphan complète (texte thaï) : /css/fonts-th.css, chargé seulement sur /th/. */
@font-face {
  font-family: "Anuphan Label";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/anuphan-400-thai-label.woff2") format("woff2");
  unicode-range: U+0E17, U+0E22, U+0E44;
}

/*
 * ---------- Polices de repli ajustées (limitent le décalage au moment du swap) ----------
 * Polices locales présentes sur macOS, iOS et Windows (Liberation Sans / Arimo : équivalents métriques d'Arial
 * sous Linux et ChromeOS), mises à la largeur moyenne et aux métriques verticales des polices web.
 * Valeurs calculées sur le texte français de la page d'accueil. Sans correspondance locale (Android),
 * la règle est ignorée et la pile continue normalement. Pas de règle 700 exprès : le gras est synthétisé
 * à partir d'Arial (largeur à 0,5 % de Zen Kaku 700), alors que local("Arial Bold") est refusé par certains
 * navigateurs (Brave n'accepte que les noms de famille des polices système).
 * À insérer juste après la police web dans les piles :
 *   --f-display: "Shippori Mincho", "Shippori Mincho Fallback", …
 *   --f-text: "Zen Kaku Gothic New", "Zen Kaku Gothic New Fallback", …
 */
@font-face {
  font-family: "Shippori Mincho Fallback";
  font-style: normal;
  font-weight: 400;
  src: local("Georgia");
  size-adjust: 107.81%;
  ascent-override: 107.6%;
  descent-override: 26.71%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Shippori Mincho Fallback";
  font-style: normal;
  font-weight: 500;
  src: local("Georgia");
  size-adjust: 109.13%;
  ascent-override: 106.29%;
  descent-override: 26.39%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Zen Kaku Gothic New Fallback";
  font-style: normal;
  font-weight: 400;
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("Arimo");
  size-adjust: 98.62%;
  ascent-override: 117.63%;
  descent-override: 29.2%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Zen Kaku Gothic New Fallback";
  font-style: normal;
  font-weight: 500;
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("Arimo");
  size-adjust: 99.15%;
  ascent-override: 117%;
  descent-override: 29.05%;
  line-gap-override: 0%;
}
