Compare commits

..

2 Commits

Author SHA1 Message Date
9956a1cbdb fix(shortcodes): éviter que Goldmark interprète </div> comme bloc de code
La fermeture du div était indentée dans le gabarit ; une fois injectée
après une liste, CommonMark la traitait comme du code indenté.
Corps du bloc sur une seule ligne avec </div> non indenté.

Made-with: Cursor
2026-04-22 18:53:34 +02:00
a6b329a698 feat(vitrine): modernisation UI (nav, home bento, typo, shortcodes)
- Header sticky, menu mobile, lien d’évitement et JS léger (site.js)
- Accueil : layouts/index.html, contenu structuré en front matter, grille bento
- Motif « parcours » en SVG statique (évite la casse minify sur path inline)
- CSS : tokens, clamp, focus-visible, prefers-reduced-motion, formulaire contact
- Footer aligné sur la charte (plus de styles inline Bootstrap)
- Shortcodes featureblock + card ; fonctionnalités en blocs featureblock
- Polices : Merienda + Source Sans 3 (remplace la pile à 5 Google Fonts)

Made-with: Cursor
2026-04-22 18:47:41 +02:00
14 changed files with 794 additions and 214 deletions

View File

@ -1,48 +1,33 @@
--- ---
title: "P'titsPas - Plateforme Publique de Gestion Petite Enfance pour Collectivités" title: "P'titsPas : La solution publique pour accompagner la Petite Enfance de votre territoire"
description: "Solution numérique publique pour les collectivités : gestion transparente des relations parents-assistantes maternelles, sans notation ni algorithme opaque. Égalité et neutralité garanties." description: "Solution numérique publique pour les collectivités : gestion transparente des relations parents-assistantes maternelles, sans notation ni algorithme opaque. Égalité et neutralité garanties."
keywords: ["P'titsPas", "ptitspas", "p'tits pas", "ptits pas", "petitspas", "petit pas", "petits pas", "opetitspas", "pitispas", "ptitpas", "p'titpas", "Ptitspas", "PTITSPAS", "petite enfance", "assistante maternelle", "collectivité", "commune", "garde enfant", "RPE", "relais petite enfance", "plateforme publique", "transparence", "neutralité", "gestion municipale petite enfance", "plateforme numérique collectivité", "mise en relation parents assistante maternelle", "solution publique garde enfant", "service public petite enfance", "accompagnement parental collectivité", "transparence service public", "égalité accès garde enfant", "politique municipale enfance", "dématérialisation services municipaux"] keywords: ["P'titsPas", "ptitspas", "p'tits pas", "ptits pas", "petitspas", "petit pas", "petits pas", "opetitspas", "pitispas", "ptitpas", "p'titpas", "Ptitspas", "PTITSPAS", "petite enfance", "assistante maternelle", "collectivité", "commune", "garde enfant", "RPE", "relais petite enfance", "plateforme publique", "transparence", "neutralité", "gestion municipale petite enfance", "plateforme numérique collectivité", "mise en relation parents assistante maternelle", "solution publique garde enfant", "service public petite enfance", "accompagnement parental collectivité", "transparence service public", "égalité accès garde enfant", "politique municipale enfance", "dématérialisation services municipaux"]
date: 2025-05-17T12:00:00+02:00 date: 2025-05-17T12:00:00+02:00
hero_image: "/images/page_login_4.1.png"
hero_image_alt: "Logo P'titsPas"
hero_tagline: "Plateforme publique pour les collectivités — transparence, neutralité, service public numérique."
intro_md: |
**Modernisez la mise en relation Parents - Assistantes Maternelles avec une plateforme 100% éthique, conçue pour les collectivités.**
Les RPE sont saturés, la gestion administrative est lourde et les parents peinent à trouver une information fiable ?
**P'titsPas** centralise et sécurise tout le parcours d'accueil individuel, tout en redonnant la main à la collectivité.
Plus qu'un outil de gestion, c'est la garantie d'un **Service Public Numérique** exemplaire.
ethics:
- title: "Sans notation"
detail: "des professionnels"
- title: "Sans algorithme opaque"
detail: "de sélection"
- title: "100% conforme"
detail: "aux valeurs de la République"
why_md: |
## Pourquoi choisir P'titsPas pour votre commune ?
Là où les plateformes privées "ubérisent" la garde d'enfant, P'titsPas **restaure le lien de confiance** et la neutralité du service public.
* **🏛️ Souveraineté des Données :** Vos données restent sur le territoire, protégées et maîtrisées (RGPD strict).
* **⚖️ Équité Territoriale :** Offrez la même qualité de service à tous les administrés, quel que soit leur quartier.
* **🤝 Valorisation des RPE :** Libérez vos agents des tâches chronophages pour qu'ils se concentrent sur l'accompagnement humain.
* **📱 Simplicité d'Usage :** Une interface pensée pour tous (parents, assistantes mat', agents), accessible sur mobile et PC.
cta_title: "Reprenez le contrôle de votre politique Petite Enfance"
--- ---
<div class="logo-accueil"><img src="/images/page_login_4.1.png" alt="Logo P'titsPas"></div>
# P'titsPas : La solution publique pour accompagner la Petite Enfance de votre territoire
<div class="content-section">
**Modernisez la mise en relation Parents - Assistantes Maternelles avec une plateforme 100% éthique, conçue pour les collectivités.**
Les RPE sont saturés, la gestion administrative est lourde et les parents peinent à trouver une information fiable ?
**P'titsPas** centralise et sécurise tout le parcours d'accueil individuel, tout en redonnant la main à la collectivité.
Plus qu'un outil de gestion, c'est la garantie d'un **Service Public Numérique** exemplaire :
* **Sans notation** des professionnels
* **Sans algorithme opaque** de sélection
* **100% conforme** aux valeurs de la République
</div>
---
<div class="content-section">
## Pourquoi choisir P'titsPas pour votre commune ?
Là où les plateformes privées "ubérisent" la garde d'enfant, P'titsPas **restaure le lien de confiance** et la neutralité du service public.
* **🏛️ Souveraineté des Données :** Vos données restent sur le territoire, protégées et maîtrisées (RGPD strict).
* **⚖️ Équité Territoriale :** Offrez la même qualité de service à tous les administrés, quel que soit leur quartier.
* **🤝 Valorisation des RPE :** Libérez vos agents des tâches chronophages pour qu'ils se concentrent sur l'accompagnement humain.
* **📱 Simplicité d'Usage :** Une interface pensée pour tous (parents, assistantes mat', agents), accessible sur mobile et PC.
</div>
---
<div style="text-align: center; margin-top: calc(var(--padding-module) * 3);">
### Reprenez le contrôle de votre politique Petite Enfance
<a href="/fonctionnalites" class="cta-button">Voir les fonctionnalités clés</a>
<a href="/contact" class="cta-button">Demander une démo</a>
</div>

View File

@ -12,28 +12,28 @@ Que vous souhaitiez une démonstration personnalisée, obtenir un devis, ou simp
Utilisez le formulaire ci-dessous pour nous faire part de votre projet. Nous nous engageons à vous répondre dans les plus brefs délais. Utilisez le formulaire ci-dessous pour nous faire part de votre projet. Nous nous engageons à vous répondre dans les plus brefs délais.
<form action="/contact.php" method="POST" style="max-width: 600px; margin: 20px auto; padding: 20px; border: 1px solid #ddd; border-radius: 5px;"> <form class="site-form" action="/contact.php" method="POST">
<div style="margin-bottom: 15px;"> <div>
<label for="name" style="display: block; margin-bottom: 5px;">Nom Prénom :</label> <label for="name">Nom Prénom :</label>
<input type="text" id="name" name="name" required style="width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 3px;"> <input type="text" id="name" name="name" required>
</div> </div>
<div style="margin-bottom: 15px;"> <div>
<label for="collectivite" style="display: block; margin-bottom: 5px;">Collectivité / Organisation :</label> <label for="collectivite">Collectivité / Organisation :</label>
<input type="text" id="collectivite" name="collectivite" required style="width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 3px;"> <input type="text" id="collectivite" name="collectivite" required>
</div> </div>
<div style="margin-bottom: 15px;"> <div>
<label for="email" style="display: block; margin-bottom: 5px;">Adresse E-mail :</label> <label for="email">Adresse E-mail :</label>
<input type="email" id="email" name="email" required style="width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 3px;"> <input type="email" id="email" name="email" required>
</div> </div>
<div style="margin-bottom: 15px;"> <div>
<label for="phone" style="display: block; margin-bottom: 5px;">Téléphone (facultatif) :</label> <label for="phone">Téléphone (facultatif) :</label>
<input type="tel" id="phone" name="phone" style="width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 3px;"> <input type="tel" id="phone" name="phone">
</div> </div>
<div style="margin-bottom: 15px;"> <div>
<label for="message" style="display: block; margin-bottom: 5px;">Votre Message :</label> <label for="message">Votre Message :</label>
<textarea id="message" name="message" rows="6" required style="width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 3px;"></textarea> <textarea id="message" name="message" rows="6" required></textarea>
</div> </div>
<button type="submit" style="background-color: #007bff; color: white; padding: 10px 20px; border: none; border-radius: 3px; cursor: pointer;">Envoyer Votre Demande</button> <button type="submit">Envoyer votre demande</button>
</form> </form>
Nous avons hâte de collaborer avec vous pour améliorer la gestion de la petite enfance sur votre territoire ! Nous avons hâte de collaborer avec vous pour améliorer la gestion de la petite enfance sur votre territoire !

View File

@ -10,21 +10,25 @@ P'titsPas offre une suite complète de fonctionnalités conçues pour simplifier
Nous comprenons que chaque acteur a des besoins spécifiques. C'est pourquoi P'titsPas propose des tableaux de bord et des outils dédiés : Nous comprenons que chaque acteur a des besoins spécifiques. C'est pourquoi P'titsPas propose des tableaux de bord et des outils dédiés :
### Pour les Parents et Assistantes Maternelles : Une expérience fluide et rassurante {{% featureblock title="Pour les Parents et Assistantes Maternelles : Une expérience fluide et rassurante" %}}
Bien que P'titsPas soit un outil au service de la collectivité, nous savons que l'adhésion des familles est la clé du succès. Une adoption facilitée signifie moins de sollicitations pour vos services et une plus grande satisfaction citoyenne. Bien que P'titsPas soit un outil au service de la collectivité, nous savons que l'adhésion des familles est la clé du succès. Une adoption facilitée signifie moins de sollicitations pour vos services et une plus grande satisfaction citoyenne.
* ✅ **Recherche facilitée** : Mise en relation transparente basée sur les besoins réels. * ✅ **Recherche facilitée** : Mise en relation transparente basée sur les besoins réels.
* ✅ **Gestion administrative simplifiée** : Contrats, avenants et suivi des heures en quelques clics. * ✅ **Gestion administrative simplifiée** : Contrats, avenants et suivi des heures en quelques clics.
* ✅ **Communication directe et tracée** : Pour apaiser les relations et garder un historique. * ✅ **Communication directe et tracée** : Pour apaiser les relations et garder un historique.
* ✅ **Agenda partagé** : Une meilleure organisation au quotidien. * ✅ **Agenda partagé** : Une meilleure organisation au quotidien.
{{% /featureblock %}}
### Pour vos Gestionnaires RPE : Gagnez du temps et de la visibilité {{% featureblock title="Pour vos Gestionnaires RPE : Gagnez du temps et de la visibilité" %}}
Libérez vos agents des tâches chronophages pour qu'ils se concentrent sur leur cœur de métier : l'accompagnement humain. Libérez vos agents des tâches chronophages pour qu'ils se concentrent sur leur cœur de métier : l'accompagnement humain.
* 📊 **Tableau de bord de supervision** : Une vue d'ensemble immédiate des contrats et disponibilités sur le territoire. * 📊 **Tableau de bord de supervision** : Une vue d'ensemble immédiate des contrats et disponibilités sur le territoire.
* ⚡ **Validation rapide** : Gestion fluide des comptes et suivi des dossiers en temps réel. * ⚡ **Validation rapide** : Gestion fluide des comptes et suivi des dossiers en temps réel.
* 🤝 **Outils de médiation** : Intervenez facilement en cas de désaccord grâce à l'historique des échanges. * 🤝 **Outils de médiation** : Intervenez facilement en cas de désaccord grâce à l'historique des échanges.
* 📢 **Communication ciblée** : Organisez vos événements RPE et diffusez l'information efficacement. * 📢 **Communication ciblée** : Organisez vos événements RPE et diffusez l'information efficacement.
{{% /featureblock %}}
### Pour votre DSI et Direction : Une solution souveraine et maîtrisée {{% featureblock title="Pour votre DSI et Direction : Une solution souveraine et maîtrisée" %}}
P'titsPas s'intègre à votre écosystème avec un niveau d'exigence élevé en matière de sécurité et de personnalisation. P'titsPas s'intègre à votre écosystème avec un niveau d'exigence élevé en matière de sécurité et de personnalisation.
* 🔒 **Sécurité et Conformité RGPD** : Une conception "Privacy by Design", hébergement souverain et chiffrement des données sensibles (NIR). * 🔒 **Sécurité et Conformité RGPD** : Une conception "Privacy by Design", hébergement souverain et chiffrement des données sensibles (NIR).
@ -32,14 +36,18 @@ P'titsPas s'intègre à votre écosystème avec un niveau d'exigence élevé en
* ⚙️ **Gestion fine des droits** : Administration centralisée des comptes et des paramètres de la plateforme. * ⚙️ **Gestion fine des droits** : Administration centralisée des comptes et des paramètres de la plateforme.
* 📈 **Pilotage par la donnée** : Statistiques d'usage, nombre de contrats, taux d'occupation... exportables pour vos rapports. * 📈 **Pilotage par la donnée** : Statistiques d'usage, nombre de contrats, taux d'occupation... exportables pour vos rapports.
* 🧩 **Évolutivité** : Activez uniquement les modules dont vous avez besoin (Blog, IA, etc.). * 🧩 **Évolutivité** : Activez uniquement les modules dont vous avez besoin (Blog, IA, etc.).
{{% /featureblock %}}
## Des Workflows Clairs et Sécurisés ## Des Workflows Clairs et Sécurisés
De la recherche d'une assistante maternelle à la fin de contrat, P'titsPas structure chaque étape : De la recherche d'une assistante maternelle à la fin de contrat, P'titsPas structure chaque étape :
{{% featureblock %}}
* **Recherche et mise en relation** guidées. * **Recherche et mise en relation** guidées.
* **Création et validation de contrats** dématérialisée et collaborative. * **Création et validation de contrats** dématérialisée et collaborative.
* **Gestion des avenants** simplifiée. * **Gestion des avenants** simplifiée.
* **Procédure de fin de contrat** accompagnée, avec calcul du solde de tout compte. * **Procédure de fin de contrat** accompagnée, avec calcul du solde de tout compte.
{{% /featureblock %}}
--- ---
@ -47,4 +55,4 @@ P'titsPas est plus qu'un logiciel, c'est un partenaire pour votre politique peti
[Découvrez pourquoi P'titsPas est la solution de confiance pour les collectivités](/pourquoi-ptitspas) [Découvrez pourquoi P'titsPas est la solution de confiance pour les collectivités](/pourquoi-ptitspas)
[Contactez-nous pour échanger sur vos besoins spécifiques](/contact) [Contactez-nous pour échanger sur vos besoins spécifiques](/contact)

View File

@ -3,40 +3,32 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- SEO Meta Tags -->
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title> <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}"> <meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}">
<meta name="keywords" content="{{ if .Keywords }}{{ delimit .Keywords ", " }}{{ else }}{{ .Site.Params.keywords }}{{ end }}"> <meta name="keywords" content="{{ if .Keywords }}{{ delimit .Keywords ", " }}{{ else }}{{ .Site.Params.keywords }}{{ end }}">
<meta name="author" content="{{ .Site.Params.author | default .Site.Title }}"> <meta name="author" content="{{ .Site.Params.author | default .Site.Title }}">
<!-- Prevent indexing of staging site -->
{{ if eq .Site.BaseURL "https://staging.ptits-pas.fr/" }} {{ if eq .Site.BaseURL "https://staging.ptits-pas.fr/" }}
<meta name="robots" content="noindex, nofollow"> <meta name="robots" content="noindex, nofollow">
{{ end }} {{ end }}
<!-- Open Graph / Facebook -->
<meta property="og:type" content="{{ if .IsHome }}website{{ else }}article{{ end }}"> <meta property="og:type" content="{{ if .IsHome }}website{{ else }}article{{ end }}">
<meta property="og:url" content="{{ .Permalink }}"> <meta property="og:url" content="{{ .Permalink }}">
<meta property="og:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }}{{ end }}"> <meta property="og:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }}{{ end }}">
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}"> <meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}">
<meta property="og:image" content="{{ .Site.BaseURL }}images/page_login_4.1.png"> <meta property="og:image" content="{{ .Site.BaseURL }}images/page_login_4.1.png">
<meta property="og:locale" content="fr_FR"> <meta property="og:locale" content="fr_FR">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image"> <meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="{{ .Permalink }}"> <meta property="twitter:url" content="{{ .Permalink }}">
<meta property="twitter:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }}{{ end }}"> <meta property="twitter:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }}{{ end }}">
<meta property="twitter:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}"> <meta property="twitter:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}">
<meta property="twitter:image" content="{{ .Site.BaseURL }}images/page_login_4.1.png"> <meta property="twitter:image" content="{{ .Site.BaseURL }}images/page_login_4.1.png">
<!-- Canonical URL -->
<link rel="canonical" href="{{ .Permalink }}"> <link rel="canonical" href="{{ .Permalink }}">
<link rel="icon" type="image/x-icon" href="{{ "favicon.ico" | relURL }}">
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<!-- JSON-LD structured data for Google -->
<script type="application/ld+json"> <script type="application/ld+json">
{ {
"@context": "https://schema.org", "@context": "https://schema.org",
@ -57,16 +49,14 @@
{{ end }} {{ end }}
} }
</script> </script>
<link rel="stylesheet" href="{{ `/css/style.css` | relURL }}"> <link rel="stylesheet" href="{{ `/css/style.css` | relURL }}">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-65J8GVLCRH"></script> <script async src="https://www.googletagmanager.com/gtag/js?id=G-65J8GVLCRH"></script>
<script> <script>
window.dataLayer = window.dataLayer || []; window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);} function gtag(){dataLayer.push(arguments);}
gtag('js', new Date()); gtag('js', new Date());
gtag('config', 'G-65J8GVLCRH', { gtag('config', 'G-65J8GVLCRH', {
'anonymize_ip': true, 'anonymize_ip': true,
'allow_google_signals': false, 'allow_google_signals': false,
@ -76,18 +66,30 @@
</script> </script>
</head> </head>
<body> <body>
<header> <a class="skip-link" href="#contenu-principal">Aller au contenu</a>
<nav> <header class="site-header">
<ul> <div class="site-header__inner">
{{ range .Site.Menus.main }} <a class="site-logo" href="{{ "/" | relURL }}">P'titsPas</a>
<li><a href="{{ .URL }}">{{ .Name }}</a></li> <nav class="site-nav" id="site-nav" aria-label="Navigation principale">
{{ end }} <button type="button" class="nav-toggle" aria-expanded="false" aria-controls="site-nav-panel" id="site-nav-toggle" aria-label="Ouvrir le menu">
</ul> <span class="nav-toggle__bar" aria-hidden="true"></span>
</nav> <span class="nav-toggle__bar" aria-hidden="true"></span>
<span class="nav-toggle__bar" aria-hidden="true"></span>
</button>
<div class="site-nav__panel" id="site-nav-panel">
<ul class="site-nav__list">
{{ range .Site.Menus.main }}
<li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
</div>
</nav>
</div>
</header> </header>
<main> <main id="contenu-principal" class="site-main">
{{ block "main" . }}{{ .Content }}{{ end }} {{ block "main" . }}{{ .Content }}{{ end }}
</main> </main>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
<script src="{{ `/js/site.js` | relURL }}" defer></script>
</body> </body>
</html> </html>

View File

@ -1,3 +1,5 @@
{{ define "main" }} {{ define "main" }}
{{ .Content }} <div class="page-shell">
{{ end }} {{ .Content }}
</div>
{{ end }}

View File

@ -1,5 +1,7 @@
{{ define "main" }} {{ define "main" }}
<article class="content"> <div class="page-shell">
{{ .Content }} <article class="content">
</article> {{ .Content }}
{{ end }} </article>
</div>
{{ end }}

46
layouts/index.html Normal file
View File

@ -0,0 +1,46 @@
{{ define "main" }}
<div class="home">
<section class="home-hero">
{{ partial "home-path-motif.html" . }}
<div class="home-hero__inner">
<div class="home-hero__media">
<img src="{{ (.Params.hero_image | default "/images/page_login_4.1.png") | relURL }}" alt="{{ .Params.hero_image_alt | default "Illustration P'titsPas" }}" width="1200" height="630" fetchpriority="high">
</div>
<div class="home-hero__copy">
<h1 class="home-hero__title">{{ .Title }}</h1>
{{ with .Params.hero_tagline }}<p class="accroche">{{ . }}</p>{{ end }}
</div>
</div>
</section>
<div class="home-bento">
<article class="home-card home-card--intro">
{{ with .Params.intro_md }}{{ . | markdownify }}{{ end }}
</article>
<aside class="home-card home-card--ethics" aria-label="Engagements">
<h2 class="visually-hidden">Nos engagements</h2>
<ol class="ethics-steps">
{{ range .Params.ethics }}
<li>
<strong>{{ .title }}</strong>
{{ .detail }}
</li>
{{ end }}
</ol>
</aside>
</div>
<section class="home-why">
{{ with .Params.why_md }}{{ . | markdownify }}{{ end }}
</section>
<section class="home-cta" aria-labelledby="home-cta-title">
<h2 id="home-cta-title" class="visually-hidden">Actions</h2>
{{ with .Params.cta_title }}<h3>{{ . }}</h3>{{ end }}
<div>
<a href="{{ "fonctionnalites" | relURL }}" class="cta-button">Voir les fonctionnalités clés</a>
<a href="{{ "contact" | relURL }}" class="cta-button">Demander une démo</a>
</div>
</section>
</div>
{{ end }}

View File

@ -1,11 +1,8 @@
<footer style="background-color: #f8f9fa; padding: 20px 0; text-align: center; border-top: 1px solid #e7e7e7; margin-top: 40px;"> <footer class="footer-site">
<div class="container"> <p>&copy; {{ now.Year }} P'titsPas — Tous droits réservés.</p>
<p>&copy; {{ now.Year }} P'titsPas - Tous droits réservés.</p> <nav class="footer-site__links" aria-label="Liens de pied de page">
<p> <a href="{{ "mentions-legales" | relURL }}">Mentions légales</a>
<a href="/mentions-legales/" style="margin-right: 15px; text-decoration: none; color: #007bff;">Mentions Légales</a> <a href="{{ "politique-de-confidentialite" | relURL }}">Politique de confidentialité</a>
<a href="/politique-de-confidentialite/" style="margin-right: 15px; text-decoration: none; color: #007bff;">Politique de Confidentialité</a> <a href="{{ "technique" | relURL }}">Données techniques</a>
<a href="/technique/" style="text-decoration: none; color: #007bff;">Données Techniques</a> </nav>
</p> </footer>
<!-- Vous pouvez ajouter ici d'autres informations ou liens si nécessaire -->
</div>
</footer>

View File

@ -0,0 +1 @@
<img class="home-hero__motif home-hero__motif-img" src="{{ "images/motif-trajet.svg" | relURL }}" width="520" height="140" alt="" role="presentation" decoding="async">

View File

@ -0,0 +1,7 @@
{{- $title := .Get "title" -}}
<div class="feature-card">
{{- if $title -}}
<h4 class="feature-card__title">{{ $title }}</h4>
{{- end -}}
<div class="feature-card__body">{{ .Inner | markdownify }}</div>
</div>

View File

@ -0,0 +1,7 @@
{{- $title := .Get "title" -}}
<section class="feature-section">
{{- if $title -}}
<h3 class="feature-section__title">{{ $title }}</h3>
{{- end -}}
<div class="feature-section__body">{{ .Inner | markdownify }}</div>
</section>

View File

@ -1,143 +1,543 @@
/* Charte Graphique P'titsPas */ /* Charte P'titsPas — vitrine modernisée (tokens + layout) */
@import url("https://fonts.googleapis.com/css2?family=Merienda:wght@400;700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");
/* Variables de Couleurs */
:root { :root {
--color-peche-doux: #FFD7A8; --color-peche-doux: #ffd7a8;
--color-menthe-claire: #AEE1CD; --color-menthe-claire: #aee1cd;
--color-rose-tendre: #F6B2C4; --color-rose-tendre: #f6b2c4;
--color-jaune-pale: #FFECB3; --color-jaune-pale: #ffecb3;
--color-lavande: #E6E6FA; /* Approximation, à ajuster si vous avez un hex exact */ --color-lavande: #e6e6fa;
--color-corail-leger: #FFDAB9; /* Approximation, à ajuster */ --color-corail-leger: #ffdab9;
--color-texte-principal: #333333; --color-texte-principal: #2c2c2c;
--color-texte-secondaire: #555555; --color-texte-secondaire: #555;
--color-blanc: #FFFFFF; --color-blanc: #fff;
--padding-module: 8px; --color-lien: #c45b6e;
--color-lien-hover: #a8485a;
--color-surface: rgba(255, 255, 255, 0.92);
--shadow-soft: 0 2px 12px rgba(44, 44, 44, 0.06);
--shadow-card: 0 4px 24px rgba(44, 44, 44, 0.08);
--radius-sm: 8px;
--radius-md: 16px;
--radius-lg: 24px;
--space-1: 0.5rem;
--space-2: 1rem;
--space-3: 1.5rem;
--space-4: 2rem;
--space-5: 3rem;
--font-display: "Merienda", cursive;
--font-body: "Source Sans 3", system-ui, sans-serif;
--header-height: 4rem;
--content-max: 72rem;
--nav-break: 52rem;
} }
/* Import des polices (exemple avec Google Fonts) */ @media (prefers-reduced-motion: reduce) {
@import url('https://fonts.googleapis.com/css2?family=Merienda:wght@400;700&family=Open+Sans:wght@400;700&family=Poppins:wght@700&family=Quicksand:wght@500;700&family=Montserrat:wght@400;700&display=swap'); *,
/* Si vous avez une police script/brushed spécifique, elle devra être importée ici aussi, potentiellement localement */ *::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
/* Styles de Base */
body { body {
font-family: 'Open Sans', sans-serif; margin: 0;
font-family: var(--font-body);
font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
line-height: 1.65;
color: var(--color-texte-principal); color: var(--color-texte-principal);
background-color: var(--color-blanc); /* Ou une teinte pastel très claire comme fond général */ background: linear-gradient(165deg, var(--color-blanc) 0%, var(--color-lavande) 35%, var(--color-menthe-claire) 100%);
background-attachment: fixed;
min-height: 100vh;
}
:focus-visible {
outline: 3px solid var(--color-menthe-claire);
outline-offset: 3px;
}
.skip-link {
position: absolute;
left: -9999px;
z-index: 1000;
padding: var(--space-2) var(--space-3);
background: var(--color-texte-principal);
color: var(--color-blanc);
font-weight: 600;
text-decoration: none;
border-radius: var(--radius-sm);
}
.skip-link:focus {
left: var(--space-2);
top: var(--space-2);
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* ——— Header ——— */
.site-header {
position: sticky;
top: 0;
z-index: 50;
background: color-mix(in srgb, var(--color-menthe-claire) 92%, transparent);
backdrop-filter: blur(10px);
border-bottom: 1px solid color-mix(in srgb, var(--color-texte-principal) 8%, transparent);
box-shadow: var(--shadow-soft);
}
.site-header__inner {
max-width: var(--content-max);
margin: 0 auto;
padding: var(--space-2) var(--space-3);
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
min-height: var(--header-height);
}
.site-logo {
font-family: var(--font-display);
font-weight: 700;
font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
color: var(--color-texte-principal);
text-decoration: none;
white-space: nowrap;
}
.site-logo:hover {
text-decoration: none;
color: var(--color-lien-hover);
}
.site-nav {
position: relative;
display: flex;
align-items: center;
justify-content: flex-end;
}
.nav-toggle {
display: flex;
flex-direction: column;
justify-content: center;
gap: 6px;
width: 2.75rem;
height: 2.75rem;
padding: 0;
border: none;
border-radius: var(--radius-sm);
background: var(--color-blanc);
cursor: pointer;
box-shadow: var(--shadow-soft);
}
.nav-toggle__bar {
display: block;
width: 1.25rem;
height: 2px;
margin: 0 auto;
background: var(--color-texte-principal);
border-radius: 1px;
transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav.is-open .nav-toggle__bar:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.site-nav.is-open .nav-toggle__bar:nth-child(2) {
opacity: 0;
}
.site-nav.is-open .nav-toggle__bar:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}
.site-nav__list {
list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
line-height: 1.6; display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: var(--space-1);
} }
main { .site-nav__list a {
padding: calc(var(--padding-module) * 3); /* 24px */ display: block;
max-width: 960px; padding: var(--space-1) var(--space-2);
font-weight: 600;
font-size: 0.95rem;
color: var(--color-texte-principal);
text-decoration: none;
border-radius: var(--radius-sm);
transition: background-color 0.2s ease;
}
.site-nav__list a:hover {
background: var(--color-peche-doux);
text-decoration: none;
}
@media (max-width: 51.99rem) {
.nav-toggle {
display: flex;
}
.site-nav__panel {
position: absolute;
left: 0;
right: 0;
top: 100%;
max-height: 0;
overflow: hidden;
background: color-mix(in srgb, var(--color-blanc) 96%, var(--color-menthe-claire));
border-bottom: 1px solid color-mix(in srgb, var(--color-texte-principal) 8%, transparent);
transition: max-height 0.35s ease;
}
.site-nav.is-open .site-nav__panel {
max-height: 24rem;
}
.site-nav__list {
flex-direction: column;
padding: var(--space-3);
align-items: stretch;
}
.site-nav__list a {
text-align: center;
}
}
@media (min-width: 52rem) {
.nav-toggle {
display: none;
}
.site-nav {
flex: 1;
}
.site-nav__panel {
position: static;
max-height: none !important;
overflow: visible;
background: transparent;
border: none;
}
.site-nav__list {
justify-content: flex-end;
}
}
/* ——— Main ——— */
.site-main {
max-width: var(--content-max);
margin: 0 auto;
padding: var(--space-4) var(--space-3) var(--space-5);
}
.page-shell {
background: var(--color-surface);
border-radius: var(--radius-md);
box-shadow: var(--shadow-card);
padding: var(--space-4);
}
.page-shell .content {
max-width: 52rem;
margin: 0 auto; margin: 0 auto;
} }
h1 { h1 {
font-family: 'Merienda', cursive; /* Police Script pour titres d'impact */ font-family: var(--font-display);
color: var(--color-texte-principal);
/* Peut nécessiter des ajustements de taille ou de graisse spécifiques */
/* font-weight: 700; /* ou 400 selon le style désiré */
}
h2, h3, h4, h5, h6 {
font-family: 'Poppins', sans-serif; /* Pour les sous-titres et autres titres */
color: var(--color-texte-principal);
}
/* Accroches et sous-titres (exemples) */
.accroche {
font-family: 'Quicksand', sans-serif;
font-weight: 700; font-weight: 700;
font-size: clamp(1.65rem, 1.2rem + 2vw, 2.35rem);
line-height: 1.25;
color: var(--color-texte-principal);
margin: 0 0 var(--space-3);
}
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-body);
font-weight: 700;
color: var(--color-texte-principal);
line-height: 1.3;
}
h2 {
font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
}
h3 {
font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
}
.accroche {
font-weight: 600;
color: var(--color-texte-secondaire); color: var(--color-texte-secondaire);
} }
a { a {
color: var(--color-corail-leger); /* Corail léger pour les liens */ color: var(--color-lien);
text-decoration: none; text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
} }
a:hover { a:hover {
text-decoration: underline; color: var(--color-lien-hover);
} }
/* Header / Navigation */ /* ——— Home ——— */
header nav { .home-hero {
background-color: var(--color-menthe-claire); /* Menthe claire pour le header */ position: relative;
padding: var(--padding-module) 0; overflow: hidden;
border-radius: var(--radius-lg);
background: var(--color-surface);
box-shadow: var(--shadow-card);
margin-bottom: var(--space-4);
} }
header nav ul { .home-hero__motif {
list-style-type: none; position: absolute;
padding: 0 calc(var(--padding-module) * 2); inset: 0;
text-align: center; pointer-events: none;
}
.home-hero__motif-img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
animation: motifReveal 2s ease forwards 0.2s;
}
@media (prefers-reduced-motion: reduce) {
.home-hero__motif-img {
animation: none;
opacity: 0.16;
}
}
@keyframes motifReveal {
to {
opacity: 0.16;
}
}
.home-hero__inner {
position: relative;
z-index: 1;
display: grid;
gap: var(--space-4);
padding: var(--space-4);
}
@media (min-width: 48rem) {
.home-hero__inner {
grid-template-columns: 1fr 1.1fr;
align-items: center;
}
}
.home-hero__media {
border-radius: var(--radius-md);
overflow: hidden;
box-shadow: var(--shadow-soft);
}
.home-hero__media img {
width: 100%;
height: auto;
max-height: 22rem;
object-fit: cover;
display: block;
}
.home-hero__title {
margin-bottom: var(--space-2);
}
.home-bento {
display: grid;
gap: var(--space-3);
margin-bottom: var(--space-4);
}
@media (min-width: 48rem) {
.home-bento {
grid-template-columns: 1.4fr 1fr;
align-items: start;
}
}
.home-card {
background: var(--color-surface);
border-radius: var(--radius-md);
box-shadow: var(--shadow-card);
padding: var(--space-4);
}
.home-card--ethics {
background: linear-gradient(145deg, var(--color-blanc), var(--color-jaune-pale));
}
.ethics-steps {
list-style: none;
margin: 0; margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: var(--space-2);
} }
header nav ul li { .ethics-steps li {
display: inline; padding: var(--space-2);
margin-right: calc(var(--padding-module) * 2.5); /* 20px */ background: var(--color-blanc);
border-radius: var(--radius-sm);
border-left: 4px solid var(--color-rose-tendre);
font-size: 0.95rem;
box-shadow: var(--shadow-soft);
} }
header nav ul li a { .ethics-steps strong {
color: var(--color-texte-principal); /* Texte plus foncé sur fond pastel clair */ display: block;
text-decoration: none; font-family: var(--font-body);
padding: calc(var(--padding-module) * 1.5) var(--padding-module); margin-bottom: 0.15rem;
display: inline-block;
font-family: 'Quicksand', sans-serif;
font-weight: 700;
border-radius: calc(var(--padding-module) / 2); /* 4px */
} }
header nav ul li a:hover { .home-why {
background-color: var(--color-peche-doux); /* Pêche doux au survol */ background: var(--color-surface);
text-decoration: none; border-radius: var(--radius-md);
box-shadow: var(--shadow-card);
padding: var(--space-4);
margin-bottom: var(--space-4);
} }
/* Style pour l'image du logo sur la page d'accueil */ .home-why :first-child {
margin-top: 0;
}
.home-why :last-child {
margin-bottom: 0;
}
.home-cta {
text-align: center;
padding: var(--space-4);
background: linear-gradient(135deg, var(--color-peche-doux), var(--color-rose-tendre));
border-radius: var(--radius-lg);
box-shadow: var(--shadow-card);
}
.home-cta h2,
.home-cta h3 {
margin-top: 0;
margin-bottom: var(--space-3);
}
.home-cta .cta-button {
margin: var(--space-1);
}
/* ——— Legacy / inner pages ——— */
.logo-accueil img { .logo-accueil img {
width: 100%; width: 100%;
max-height: 400px; max-height: 400px;
object-fit: cover; object-fit: cover;
display: block; display: block;
margin-bottom: calc(var(--padding-module) * 4); /* 32px */ margin-bottom: var(--space-4);
border-radius: var(--padding-module); /* Coins arrondis style galet */ border-radius: var(--radius-sm);
}
.content-section {
background: var(--color-surface);
padding: var(--space-4);
margin-bottom: var(--space-3);
border-radius: var(--radius-md);
box-shadow: var(--shadow-soft);
} }
/* Boutons */
button, button,
input[type="submit"], input[type="submit"],
.cta-button { .cta-button {
font-family: 'Quicksand', sans-serif; font-family: var(--font-body);
font-weight: 700; font-weight: 700;
background-color: var(--color-peche-doux); /* Pêche doux pour les boutons primaires */ background: var(--color-peche-doux);
color: var(--color-texte-principal); color: var(--color-texte-principal);
border: none; border: none;
padding: calc(var(--padding-module) * 1.5) calc(var(--padding-module) * 3); padding: var(--space-2) var(--space-4);
border-radius: calc(var(--padding-module) * 3); /* Forme de galet allongé */ border-radius: 999px;
cursor: pointer; cursor: pointer;
text-decoration: none; text-decoration: none;
display: inline-block; display: inline-block;
margin-top: var(--padding-module); margin-top: var(--space-1);
transition: background-color 0.3s ease; transition: background-color 0.2s ease, transform 0.15s ease;
box-shadow: var(--shadow-soft);
}
.cta-button {
text-decoration: none;
} }
button:hover, button:hover,
input[type="submit"]:hover, input[type="submit"]:hover,
.cta-button:hover { .cta-button:hover {
background-color: var(--color-rose-tendre); /* Rose tendre au survol */ background: var(--color-rose-tendre);
text-decoration: none;
transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
button:hover,
input[type="submit"]:hover,
.cta-button:hover {
transform: none;
}
} }
/* Formulaires (basique) */
form div { form div {
margin-bottom: calc(var(--padding-module) * 2); margin-bottom: var(--space-2);
} }
form label { form label {
display: block; display: block;
margin-bottom: var(--padding-module); margin-bottom: var(--space-1);
font-family: 'Quicksand', sans-serif; font-weight: 600;
} }
form input[type="text"], form input[type="text"],
@ -145,36 +545,109 @@ form input[type="email"],
form input[type="tel"], form input[type="tel"],
form textarea { form textarea {
width: 100%; width: 100%;
padding: var(--padding-module); padding: var(--space-2);
border: 1px solid var(--color-menthe-claire); border: 1px solid color-mix(in srgb, var(--color-menthe-claire) 70%, var(--color-texte-principal));
border-radius: calc(var(--padding-module) / 2); /* 4px */ border-radius: var(--radius-sm);
box-sizing: border-box; /* Important pour que padding ne change pas la largeur totale */ font-family: var(--font-body);
font-family: 'Open Sans', sans-serif; font-size: 1rem;
} }
/* Sections de contenu - style galet */ .site-form {
.content-section { max-width: 38rem;
background-color: var(--color-blanc); margin: var(--space-4) auto;
padding: calc(var(--padding-module) * 3); padding: var(--space-4);
margin-bottom: calc(var(--padding-module) * 3); background: var(--color-surface);
border-radius: calc(var(--padding-module) * 2); /* 16px, angles arrondis */ border-radius: var(--radius-md);
box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Ombre douce */ box-shadow: var(--shadow-soft);
} }
/* Footer */ .site-form button[type="submit"] {
footer { margin-top: var(--space-2);
background-color: var(--color-jaune-pale); /* Jaune pâle pour le footer */
padding: calc(var(--padding-module) * 2.5) 0;
text-align: center;
border-top: 1px solid var(--color-peche-doux);
margin-top: calc(var(--padding-module) * 5);
} }
footer p { /* ——— Feature sections (shortcodes) ——— */
margin: var(--padding-module) 0; .feature-section {
font-size: 0.9em; background: var(--color-surface);
border-radius: var(--radius-md);
box-shadow: var(--shadow-soft);
padding: var(--space-4);
margin: var(--space-4) 0;
} }
footer a { .feature-section__title {
margin: 0 0 var(--space-2);
padding-bottom: var(--space-2);
border-bottom: 2px solid var(--color-menthe-claire);
}
.feature-section__body > :first-child {
margin-top: 0;
}
.feature-section__body > :last-child {
margin-bottom: 0;
}
.feature-grid {
display: grid;
gap: var(--space-3);
margin: var(--space-3) 0;
}
@media (min-width: 40rem) {
.feature-grid {
grid-template-columns: repeat(2, 1fr);
}
}
.feature-card {
background: color-mix(in srgb, var(--color-blanc) 88%, var(--color-lavande));
border-radius: var(--radius-sm);
padding: var(--space-3);
border: 1px solid color-mix(in srgb, var(--color-texte-principal) 6%, transparent);
}
.feature-card__title {
margin: 0 0 var(--space-1);
font-size: 1rem;
}
.feature-card__body {
margin: 0;
font-size: 0.95rem;
color: var(--color-texte-secondaire); color: var(--color-texte-secondaire);
} }
/* ——— Footer ——— */
.footer-site {
background: color-mix(in srgb, var(--color-jaune-pale) 88%, var(--color-blanc));
padding: var(--space-4) var(--space-3);
text-align: center;
border-top: 1px solid color-mix(in srgb, var(--color-peche-doux) 80%, transparent);
margin-top: var(--space-5);
}
.footer-site p {
margin: var(--space-1) 0;
font-size: 0.95rem;
color: var(--color-texte-secondaire);
}
.footer-site__links {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--space-2) var(--space-3);
margin-top: var(--space-2);
}
.footer-site__links a {
color: var(--color-texte-principal);
font-weight: 600;
text-decoration: none;
}
.footer-site__links a:hover {
text-decoration: underline;
color: var(--color-lien-hover);
}

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 520 140" preserveAspectRatio="xMidYMid slice" fill="none">
<path stroke="#7eb9a4" stroke-width="2.5" stroke-linecap="round" opacity="0.35" d="M20 100 C 90 30, 160 120, 230 70 S 360 20, 500 85"/>
</svg>

After

Width:  |  Height:  |  Size: 257 B

47
static/js/site.js Normal file
View File

@ -0,0 +1,47 @@
(function () {
var nav = document.getElementById("site-nav");
if (!nav) return;
var toggle = nav.querySelector(".nav-toggle");
var mq = window.matchMedia("(max-width: 51.99rem)");
function setOpen(open) {
nav.classList.toggle("is-open", open);
if (toggle) {
toggle.setAttribute("aria-expanded", open ? "true" : "false");
toggle.setAttribute("aria-label", open ? "Fermer le menu" : "Ouvrir le menu");
}
}
if (toggle) {
toggle.addEventListener("click", function () {
var next = !nav.classList.contains("is-open");
setOpen(next);
if (next) {
var first = nav.querySelector(".site-nav__list a");
if (first) {
window.requestAnimationFrame(function () {
first.focus();
});
}
}
});
}
document.addEventListener("keydown", function (e) {
if (e.key === "Escape" && nav.classList.contains("is-open")) {
setOpen(false);
if (toggle) toggle.focus();
}
});
nav.querySelectorAll(".site-nav__list a").forEach(function (a) {
a.addEventListener("click", function () {
if (mq.matches) setOpen(false);
});
});
mq.addEventListener("change", function (e) {
if (!e.matches) setOpen(false);
});
})();