feat: architecture multi-thèmes (6 designs) et nouveau logo SVG

This commit is contained in:
lrdlg committed 2026-11-26 15:45:51 +01:00
1 parent 685599e706
commit e180a97113
20 files changed
+3177 -118

No files matched your search

+69 -20
View File
@@ -150,10 +150,47 @@
<link rel="stylesheet" href="/assets/css/base.css">
<link rel="stylesheet" href="/assets/css/layout.css">
<link rel="stylesheet" href="/assets/css/components.css">
<link rel="stylesheet" href="/assets/css/themes/classic.css">
<link rel="stylesheet" href="/assets/css/themes/neo-brutalist.css">
<link rel="stylesheet" href="/assets/css/themes/bento-grid.css">
<link rel="stylesheet" href="/assets/css/themes/obsidian-dark.css">
<link rel="stylesheet" href="/assets/css/themes/liquid-glass.css">
<link rel="stylesheet" href="/assets/css/themes/editorial-type.css">
<link rel="stylesheet" href="/assets/css/utilities.css">
<link rel="stylesheet" href="/assets/css/theme-switcher.css">
<!-- Chargée uniquement à l'impression : ne pénalise pas le rendu écran -->
<link rel="stylesheet" href="/assets/css/print.css" media="print">
<!-- ==========================================================================
INITIALISATION SYNCHRONE DU THÈME (anti-FOUC)
Pose data-theme avant le premier rendu pour éviter tout flash visuel :
1. ?theme=<id> valide dans l'URL
2. Choix précédemment enregistré dans localStorage
3. Tirage aléatoire + sauvegarde dans localStorage
========================================================================== -->
<script>
(function () {
var VALID = ["classic", "neo-brutalist", "bento-grid", "obsidian-dark", "liquid-glass", "editorial-type"];
var KEY = "cm-theme";
var chosen = null;
try {
var param = new URLSearchParams(window.location.search).get("theme");
if (VALID.indexOf(param) !== -1) chosen = param;
} catch (e) {}
if (!chosen) {
try {
var saved = window.localStorage.getItem(KEY);
if (VALID.indexOf(saved) !== -1) chosen = saved;
} catch (e) {}
}
if (!chosen) {
chosen = VALID[Math.floor(Math.random() * VALID.length)];
try { window.localStorage.setItem(KEY, chosen); } catch (e) {}
}
document.documentElement.dataset.theme = chosen;
})();
</script>
<!-- ==========================================================================
SCRIPT
type="module" implique defer : le téléchargement est parallèle à
@@ -357,6 +394,11 @@
<body>
<!-- Indicateur de progression de lecture (piloté par motion.js) -->
<div class="reading-progress screen-only" data-reading-progress aria-hidden="true">
<span class="reading-progress__bar"></span>
</div>
<!-- Repère de focus pour le retour en haut de page (voir back-to-top.js).
tabindex="-1" le rend focusable par script sans l'insérer dans l'ordre
de tabulation naturel. -->
@@ -381,13 +423,24 @@
<a class="site-header__brand" href="#haut-de-page">
<!-- Le logo est décoratif : le nom est déjà écrit à côté en texte.
aria-hidden évite la double annonce par le lecteur d'écran. -->
<svg class="site-header__logo" viewBox="0 0 64 64" aria-hidden="true" focusable="false">
<g fill="none" stroke-width="5.5" stroke-linecap="butt" stroke-linejoin="miter">
<path d="M11 44 V21 L20.5 33.5 L30 21 V44" stroke="currentColor"/>
<path d="M50.39 23.69 A11.5 11.5 0 1 0 50.39 41.31" stroke="#05BC8A"/>
aria-hidden évite la double annonce par le lecteur d'écran.
Grille 100x100 calibrée à 5 unités ; tracés séparés prêts pour
l'animation et adaptation multi-thèmes via currentColor. -->
<svg class="site-header__logo" viewBox="0 0 100 100" aria-hidden="true" focusable="false">
<defs>
<linearGradient id="logo-c-grad" x1="15%" y1="85%" x2="85%" y2="15%">
<stop offset="0%" stop-color="#028A63"/>
<stop offset="55%" stop-color="#05BC8A"/>
<stop offset="100%" stop-color="#3CE59D"/>
</linearGradient>
</defs>
<path class="logo-c" d="M 80 34 A 34 34 0 1 0 80 66"
fill="none" stroke="url(#logo-c-grad)" stroke-width="12" stroke-linecap="round"/>
<g class="logo-bars" fill="none" stroke="currentColor" stroke-width="9" stroke-linecap="round">
<line class="logo-bar logo-bar-1" x1="32.9" y1="51.7" x2="42.9" y2="34.3"/>
<line class="logo-bar logo-bar-2" x1="41.5" y1="64.7" x2="58.5" y2="35.3"/>
<line class="logo-bar logo-bar-3" x1="57.1" y1="65.7" x2="67.1" y2="48.3"/>
</g>
<path d="M11 52 H53" stroke="#05BC8A" stroke-width="3.5" stroke-linecap="round"/>
</svg>
courcelle_matthieu
</a>
@@ -497,13 +550,9 @@
Me contacter
</a>
<!--
onclick inline : exception assumée et unique dans ce projet.
window.print() n'a aucun sens sans JavaScript et le sortir dans un
module imposerait un fichier entier pour une ligne. Le bouton est
volontairement absent du flux d'impression.
-->
<button class="button button--secondary" type="button" onclick="window.print()">
<!-- Bouton d'impression piloté par main.js (data-print) : révèle
toutes les sections avant window.print() et reste masqué sur papier. -->
<button class="button button--secondary" type="button" data-print>
<svg class="button__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<path d="M7 9V3h10v6"/>
<rect x="4" y="9" width="16" height="7" rx="2"/>
@@ -517,7 +566,7 @@
<!-- ====================================================================
PRÉSENTATION
==================================================================== -->
<section class="intro" id="profil" data-section aria-labelledby="titre-profil">
<section class="intro" id="profil" data-section data-reveal aria-labelledby="titre-profil">
<h2 class="intro__heading" id="titre-profil">
Enseigner, transmettre, construire des outils qui servent
</h2>
@@ -567,7 +616,7 @@
<!-- ====================================================================
ENSEIGNEMENT
==================================================================== -->
<section class="section" id="enseignement" data-section aria-labelledby="titre-enseignement">
<section class="section" id="enseignement" data-section data-reveal aria-labelledby="titre-enseignement">
<h2 class="section-title" id="titre-enseignement">Enseignement</h2>
<article class="entry">
@@ -699,7 +748,7 @@
<!-- ====================================================================
COORDINATION
==================================================================== -->
<section class="section" id="coordination" data-section aria-labelledby="titre-coordination">
<section class="section" id="coordination" data-section data-reveal aria-labelledby="titre-coordination">
<h2 class="section-title" id="titre-coordination">Coordination pédagogique</h2>
<article class="entry">
@@ -730,7 +779,7 @@
<!-- ====================================================================
PROJETS
==================================================================== -->
<section class="section" id="projets" data-section aria-labelledby="titre-projets">
<section class="section" id="projets" data-section data-reveal aria-labelledby="titre-projets">
<h2 class="section-title" id="titre-projets">Projets</h2>
<article class="project">
@@ -825,7 +874,7 @@
<!-- ====================================================================
COMPÉTENCES
==================================================================== -->
<section class="section" id="competences" data-section aria-labelledby="titre-competences">
<section class="section" id="competences" data-section data-reveal aria-labelledby="titre-competences">
<h2 class="section-title" id="titre-competences">Compétences</h2>
<div class="grid">
@@ -935,7 +984,7 @@
<!-- ====================================================================
FORMATION
==================================================================== -->
<section class="section" id="formation" data-section aria-labelledby="titre-formation">
<section class="section" id="formation" data-section data-reveal aria-labelledby="titre-formation">
<h2 class="section-title" id="titre-formation">Formation</h2>
<div class="grid">
@@ -956,7 +1005,7 @@
<!-- ====================================================================
CONTACT
==================================================================== -->
<section class="section" id="contact" data-section aria-labelledby="titre-contact">
<section class="section" id="contact" data-section data-reveal aria-labelledby="titre-contact">
<h2 class="section-title" id="titre-contact">Contact</h2>
<div class="contact-block">