/* ==========================================================================
   Polices auto-hébergées — maytimeaway.fr (thème enfant Poise)
   Fichiers générés avec fonttools (varLib.instancer + pyftsubset) depuis les
   sources google/fonts (licence OFL) : sous-ensemble « occidental » (ASCII,
   Latin-1 Supplement, ponctuation typographique, Œ/œ), features kern/liga/clig/frac.
   Replis calibrés (size-adjust / ascent / descent) : No More Font Shift
   — Nunito Medium #107, Open Sans #57, Lato #44, Crimson Text #105, Amiri #106.
   Règle : pour chaque famille de repli, la face Android est déclarée EN PREMIER,
   la face desktop/iOS EN DERNIER (la dernière l'emporte quand les deux existent).
   ========================================================================== */

/* --- Webfonts ------------------------------------------------------------ */

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-wght500-700.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+2010, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-wght400-700.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+2010, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+2010, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC;
}

@font-face {
  font-family: 'Crimson Text';
  src: url('../fonts/crimson-text-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+2010, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC;
}

@font-face {
  font-family: 'Amiri';
  src: url('../fonts/amiri-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+2010, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC;
}

/* --- Replis calibrés (No More Font Shift) --------------------------------- */

/* Nunito — corps de texte rendu en graisse 500 : calibré sur le fichier 500–700 (NMFS #107) */
@font-face {
  font-family: 'Nunito-fallback';
  src: local('Roboto Regular'), local('Roboto-Regular'), local('Roboto');
  size-adjust: 102.10%;
  ascent-override: 99.02%;
  descent-override: 34.57%;
}
@font-face {
  font-family: 'Nunito-fallback';
  src: local('Arial');
  size-adjust: 101.10%;
  ascent-override: 100.00%;
  descent-override: 34.91%;
}

/* Open Sans (NMFS #57) */
@font-face {
  font-family: 'Open Sans-fallback';
  src: local('Roboto Regular'), local('Roboto-Regular'), local('Roboto');
  size-adjust: 105.86%;
  ascent-override: 100.99%;
  descent-override: 27.68%;
}
@font-face {
  font-family: 'Open Sans-fallback';
  src: local('Arial');
  size-adjust: 105.13%;
  ascent-override: 101.68%;
  descent-override: 27.87%;
}

/* Lato (NMFS #44) */
@font-face {
  font-family: 'Lato-fallback';
  src: local('Roboto Regular'), local('Roboto-Regular'), local('Roboto');
  size-adjust: 98.70%;
  ascent-override: 100.00%;
  descent-override: 21.58%;
}
@font-face {
  font-family: 'Lato-fallback';
  src: local('Arial');
  size-adjust: 98.01%;
  ascent-override: 100.70%;
  descent-override: 21.73%;
}

/* Crimson Text (NMFS #105) */
@font-face {
  font-family: 'Crimson Text-fallback';
  src: local('Noto Serif Regular'), local('NotoSerif-Regular'), local('Noto Serif'), local('NotoSerif');
  size-adjust: 81.83%;
  ascent-override: 115.99%;
  descent-override: 42.84%;
}
@font-face {
  font-family: 'Crimson Text-fallback';
  src: local('Times New Roman'), local('TimesNewRoman'), local('Times');
  size-adjust: 96.48%;
  ascent-override: 98.39%;
  descent-override: 36.34%;
}

/* Amiri (NMFS #106) */
@font-face {
  font-family: 'Amiri-fallback';
  src: local('Noto Serif Regular'), local('NotoSerif-Regular'), local('Noto Serif'), local('NotoSerif');
  size-adjust: 84.75%;
  ascent-override: 132.63%;
  descent-override: 74.81%;
}
@font-face {
  font-family: 'Amiri-fallback';
  src: local('Times New Roman'), local('TimesNewRoman'), local('Times');
  size-adjust: 99.91%;
  ascent-override: 112.50%;
  descent-override: 63.46%;
}

/* --- Affectations reprises de l'extension WP Google Fonts ------------------
   (googlefonts_options : font1 Amiri → h2–h5 ; font2 Nunito → body, blockquote, p, li).
   Chargé après le CSS du parent pour conserver la cascade d'origine. */

h2, h3, h4, h5 {
  font-family: 'Amiri', 'Amiri-fallback', serif;
}

body, blockquote, p, li {
  font-family: 'Nunito', 'Nunito-fallback', sans-serif;
}
