diff --git a/README.md b/README.md index 5ffdec3..89d348e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,8 @@ Site vitrine purement statique de la carte éducative **STeaMi**, hébergé sur ```text data/contenu.json ← Tous les textes, liens, spécifications et listes (à modifier en priorité) -assets/css/style.css ← Couleurs (:root), mise en page et transitions +assets/css/style.css ← Couleurs (:root), polices (@font-face), mise en page et transitions +assets/fonts/ ← Polices auto-hébergées WOFF2 (Space Grotesk et Figtree, SIL OFL 1.1) assets/js/main.js ← Interactivité légère (scrollspy, animations d'apparition, retour en haut, menu mobile) assets/img/ ← Photos de la carte et logos locaux (plateformes, partenaires, financeurs) scripts/build.py ← Générateur statique (Python 3 stdlib uniquement) diff --git a/assets/css/style.css b/assets/css/style.css index dace319..752c6c8 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -1,8 +1,72 @@ /* * Feuille de style principale de steami.cc * Fidèle à l'identité visuelle STeaMi : blanc, gris clair (#E8E6E6), jaune (#FFBF23) et trait noir. + * Polices auto-hébergées (SIL OFL 1.1) : Space Grotesk pour les titres, Figtree en repli libre de Proxima Nova. */ +@font-face { + font-family: 'Space Grotesk'; + font-style: normal; + font-weight: 400 700; + font-display: swap; + src: url('../fonts/space-grotesk-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: 'Space Grotesk'; + font-style: normal; + font-weight: 400 700; + font-display: swap; + src: url('../fonts/space-grotesk-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: 'Figtree'; + font-style: normal; + font-weight: 400 700; + font-display: swap; + src: url('../fonts/figtree-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: 'Figtree'; + font-style: normal; + font-weight: 400 700; + font-display: swap; + src: url('../fonts/figtree-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: 'Figtree'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url('../fonts/figtree-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: 'Figtree'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url('../fonts/figtree-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; +} + :root { --blanc: #ffffff; --gris-bandeau: #e8e6e6; @@ -15,7 +79,8 @@ --police-titre: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; - --police-texte: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; + --police-texte: 'Proxima Nova', 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, + Helvetica, Arial, sans-serif; --largeur-max: 1120px; --rayon: 8px; @@ -271,7 +336,7 @@ summary:focus-visible { margin: 0 0 0.35rem; font-family: var(--police-titre); font-size: clamp(2.4rem, 4.6vw, 3.35rem); - font-weight: 800; + font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; color: var(--noir); @@ -376,7 +441,7 @@ summary:focus-visible { margin: 0 0 1.2rem; font-family: var(--police-titre); font-size: clamp(1.65rem, 3vw, 2.15rem); - font-weight: 800; + font-weight: 700; color: var(--noir); } @@ -404,7 +469,7 @@ summary:focus-visible { margin: 0 0 2.5rem; font-family: var(--police-titre); font-size: clamp(1.85rem, 3.2vw, 2.35rem); - font-weight: 800; + font-weight: 700; color: var(--noir); } @@ -480,7 +545,7 @@ summary:focus-visible { text-align: center; font-family: var(--police-titre); font-size: clamp(1.7rem, 3vw, 2.15rem); - font-weight: 800; + font-weight: 700; color: var(--noir); } @@ -568,7 +633,7 @@ summary:focus-visible { margin: 0; font-family: var(--police-titre); font-size: clamp(1.65rem, 3vw, 2.15rem); - font-weight: 800; + font-weight: 700; color: var(--noir); } @@ -627,7 +692,7 @@ summary:focus-visible { margin: 0 0 0.75rem; font-family: var(--police-titre); font-size: clamp(2rem, 3.8vw, 2.85rem); - font-weight: 800; + font-weight: 700; letter-spacing: -0.025em; color: var(--noir); } @@ -716,7 +781,7 @@ summary:focus-visible { margin: 0 0 1rem; font-family: var(--police-titre); font-size: clamp(1.6rem, 2.8vw, 2rem); - font-weight: 800; + font-weight: 700; color: var(--noir); } @@ -776,7 +841,7 @@ summary:focus-visible { .pied-marque-nom { font-family: var(--police-titre); - font-weight: 800; + font-weight: 700; font-size: 1.25rem; line-height: 1.15; } @@ -958,7 +1023,7 @@ summary:focus-visible { margin: 0 0 1.5rem; font-family: var(--police-titre); font-size: clamp(2rem, 4vw, 2.6rem); - font-weight: 800; + font-weight: 700; color: var(--noir); } diff --git a/assets/fonts/figtree-italic-latin-ext.woff2 b/assets/fonts/figtree-italic-latin-ext.woff2 new file mode 100644 index 0000000..cfdd942 Binary files /dev/null and b/assets/fonts/figtree-italic-latin-ext.woff2 differ diff --git a/assets/fonts/figtree-italic-latin.woff2 b/assets/fonts/figtree-italic-latin.woff2 new file mode 100644 index 0000000..f223678 Binary files /dev/null and b/assets/fonts/figtree-italic-latin.woff2 differ diff --git a/assets/fonts/figtree-latin-ext.woff2 b/assets/fonts/figtree-latin-ext.woff2 new file mode 100644 index 0000000..a8a1123 Binary files /dev/null and b/assets/fonts/figtree-latin-ext.woff2 differ diff --git a/assets/fonts/figtree-latin.woff2 b/assets/fonts/figtree-latin.woff2 new file mode 100644 index 0000000..05ce657 Binary files /dev/null and b/assets/fonts/figtree-latin.woff2 differ diff --git a/assets/fonts/space-grotesk-latin-ext.woff2 b/assets/fonts/space-grotesk-latin-ext.woff2 new file mode 100644 index 0000000..db732c2 Binary files /dev/null and b/assets/fonts/space-grotesk-latin-ext.woff2 differ diff --git a/assets/fonts/space-grotesk-latin.woff2 b/assets/fonts/space-grotesk-latin.woff2 new file mode 100644 index 0000000..0f3474e Binary files /dev/null and b/assets/fonts/space-grotesk-latin.woff2 differ diff --git a/scripts/test_build.py b/scripts/test_build.py index e672a7b..34e5b61 100644 --- a/scripts/test_build.py +++ b/scripts/test_build.py @@ -54,6 +54,8 @@ def test_generation_complete(self) -> None: self.assertEqual((dist / "CNAME").read_text(encoding="utf-8").strip(), "steami.cc") self.assertTrue((dist / ".nojekyll").is_file()) self.assertTrue((dist / "assets" / "css" / "style.css").is_file()) + self.assertTrue((dist / "assets" / "fonts" / "space-grotesk-latin.woff2").is_file()) + self.assertTrue((dist / "assets" / "fonts" / "figtree-latin.woff2").is_file()) self.assertTrue((dist / "assets" / "js" / "main.js").is_file()) self.assertIn('assets/js/main.js', index) self.assertIn('data-anim="float"', index)