Files
gong.gp/src/lib/styles/base.css
T
sucupiraandClaude Opus 4.8 cd9b9b093c Refonte complète en SvelteKit (méthode OKI, AI-Overview ready)
Reconstruit le site statique mono-page (Bulma + htmx + Strapi) en SvelteKit 2 +
Svelte 5 (runes) + TypeScript, 100 % statique (adapter-static), auto-hébergé.

- Contenu enrichi à partir du dossier documentaire sourcé : 28 pages (histoire,
  Mé 67, procès 1968, 9 fiches militants, idéologie, héritage, publications,
  charte, orientation, sources, FAQ, actualités, contact, mentions légales).
- Souveraineté : retrait de Bulma/htmx/mustache/ionicons/Plausible/Google Fonts
  et de l'API Strapi. Polices Archivo/Inter et sprite SVG auto-hébergés (zéro emoji).
- Identité GONG (drapeau vert/blanc/rouge), thème sombre par défaut + clair AA,
  cadences motion gwoka, KineticText, timeline, 404 kréyòl, PWA hors-ligne.
- SEO/AI-Overview : HTML sémantique, JSON-LD (Organization, Person, Event,
  FAQPage, Article...), hreflang, sitemap dynamique, robots/humans.txt.
- Sécurité : CSP hachée + en-têtes (.htaccess o2switch + _headers Cloudflare), HSTS.
- Actualités éditées via Sveltia CMS (git-based) ; Strapi retiré.

npm run build : vert · npm run check : 0 erreur / 0 warning · JS 97 Ko gzip.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 23:57:37 -04:00

357 lines
7.2 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ============================================================================
BASE GONG — reset, primitives, gate reduced-motion.
Importé après gong-tokens.css dans +layout.svelte.
============================================================================ */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
-webkit-text-size-adjust: 100%;
scroll-behavior: smooth;
}
body {
margin: 0;
min-height: 100dvh;
background: var(--noir);
color: var(--creme);
font-family: var(--font-body);
font-weight: 400;
line-height: 1.6;
font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
img,
picture,
svg,
video {
max-width: 100%;
height: auto;
display: block;
}
/* ── Titres — Archivo, MAJUSCULES ── */
h1,
h2,
h3,
h4 {
font-family: var(--font-display);
font-weight: 800;
line-height: 1.08;
letter-spacing: -0.01em;
text-transform: uppercase;
margin: 0 0 var(--space-2);
text-wrap: balance;
}
h1 {
font-size: clamp(2.2rem, 1.6rem + 3vw, 4rem);
font-weight: 900;
}
h2 {
font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.5rem);
}
h3 {
font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
font-weight: 700;
}
h4 {
font-size: 1.1rem;
font-weight: 700;
}
p {
margin: 0 0 var(--space-2);
}
strong,
b {
font-weight: 700;
color: var(--creme);
}
/* ── Liens : soulignés uniquement dans le contenu (main), pas dans nav/footer ── */
a {
color: var(--accent);
text-decoration: none;
transition: color var(--dur-tanbou) var(--ease-ka);
}
a:hover {
color: var(--accent-hover);
}
main a:not(.btn):not(.card):not(.tag):not(.no-underline) {
text-decoration: underline;
text-underline-offset: 0.15em;
text-decoration-thickness: 1px;
}
/* ── Focus visible (marque) ── */
:focus-visible {
outline: 3px solid var(--focus);
outline-offset: 2px;
border-radius: 2px;
}
/* ── Layout ── */
.container {
width: 100%;
max-width: var(--container);
margin-inline: auto;
padding-inline: var(--space-3);
}
.container.lecture {
max-width: var(--container-lecture);
}
.section {
padding-block: var(--space-5);
}
.section--tight {
padding-block: var(--space-4);
}
/* ── Bouton canonique — balayage d'accent au survol ── */
.btn {
--btn-fill: var(--accent);
position: relative;
display: inline-flex;
align-items: center;
gap: 0.5em;
font-family: var(--font-display);
font-weight: 700;
font-size: 0.95rem;
text-transform: uppercase;
letter-spacing: 0.03em;
line-height: 1;
padding: 0.85em 1.4em;
border: 2px solid var(--btn-fill);
border-radius: var(--radius-sm);
background: transparent;
color: var(--creme);
cursor: pointer;
overflow: hidden;
isolation: isolate;
transition: color var(--dur-tanbou) var(--ease-ka);
}
.btn::after {
content: '';
position: absolute;
inset: 0;
z-index: -1;
background: var(--btn-fill);
transform: scaleX(0);
transform-origin: left;
transition: transform var(--dur-mesure) var(--ease-syncope);
}
.btn:hover,
.btn:focus-visible {
color: #0d0d0d;
}
.btn:hover::after,
.btn:focus-visible::after {
transform: scaleX(1);
}
.btn--fill {
background: var(--btn-fill);
color: #0d0d0d;
}
.btn--fill::after {
background: var(--accent-hover);
}
.btn--vert {
--btn-fill: var(--vert-gong);
}
.btn--ghost {
border-color: var(--line);
}
.btn--ghost:hover {
--btn-fill: var(--accent);
}
/* ── Carte canonique — liseré gauche d'accent, lift au survol ── */
.card {
position: relative;
display: flex;
flex-direction: column;
background: var(--card-bg);
border: var(--border-card);
border-left: 4px solid var(--accent);
border-radius: var(--radius-md);
padding: var(--space-3);
transition:
transform var(--dur-mesure) var(--ease-ka),
border-color var(--dur-mesure) var(--ease-ka),
background var(--dur-mesure) var(--ease-ka);
}
.card--vert {
border-left-color: var(--vert-gong);
}
a.card,
.card--link {
cursor: pointer;
color: inherit;
}
a.card:hover,
.card--link:hover {
transform: translateY(-4px);
background: var(--card-bg-hover);
border-color: var(--accent);
}
/* ── Tag canonique ── */
.tag {
display: inline-flex;
align-items: center;
gap: 0.35em;
font-family: var(--font-body);
font-size: 0.8rem;
font-weight: 600;
line-height: 1;
padding: 0.4em 0.7em;
border-radius: var(--radius-sm);
background: color-mix(in srgb, var(--accent) 12%, transparent);
border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
color: var(--creme);
text-transform: none;
letter-spacing: 0;
}
.tag--vert {
background: color-mix(in srgb, var(--vert-gong) 12%, transparent);
border-color: color-mix(in srgb, var(--vert-gong) 45%, transparent);
}
/* ── Flag-bar GONG — signature (vert · blanc · rouge, segments francs) ── */
.flag-bar {
height: 6px;
width: 100%;
background: linear-gradient(
to right,
var(--vert-gong) 0 40%,
var(--blanc-drapeau) 40% 60%,
var(--rouge-gong) 60% 100%
);
}
html.light-theme .flag-bar {
background: linear-gradient(
to right,
var(--vert-gong) 0 40%,
#0d0d0d 40% 60%,
var(--rouge-gong) 60% 100%
);
}
/* Flag-chip : mini signature d'ornement de titre (56 × 6 px) */
.flag-chip {
display: inline-block;
width: 56px;
height: 6px;
border-radius: 1px;
background: linear-gradient(
to right,
var(--vert-gong) 0 40%,
var(--blanc-drapeau) 40% 60%,
var(--rouge-gong) 60% 100%
);
}
/* ── Icônes (sprite SVG) ── */
.icon {
width: 1.25em;
height: 1.25em;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
flex: none;
vertical-align: middle;
}
/* ── Accessibilité ── */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.skip-link {
position: absolute;
left: 0.5rem;
top: -3rem;
z-index: 200;
background: var(--accent);
color: #0d0d0d;
font-family: var(--font-display);
font-weight: 700;
text-transform: uppercase;
padding: 0.6em 1em;
border-radius: var(--radius-sm);
transition: top var(--dur-tanbou) var(--ease-ka);
}
.skip-link:focus {
top: 0.5rem;
color: #0d0d0d;
}
/* ── Reveal — état caché seulement si JS actif ET mouvement autorisé ── */
html.has-js .reveal {
opacity: 0;
transform: translateY(18px);
}
html.has-js .reveal.is-visible {
opacity: 1;
transform: none;
transition:
opacity var(--dur-mesure) var(--ease-ka),
transform var(--dur-mesure) var(--ease-ka);
transition-delay: var(--d, 0ms);
}
/* Prose (textes historiques longs) */
.prose {
max-width: var(--container-lecture);
}
.prose p,
.prose li {
color: color-mix(in srgb, var(--creme) 90%, transparent);
}
.prose h2 {
margin-top: var(--space-4);
}
.prose h3 {
margin-top: var(--space-3);
}
.prose blockquote {
margin: var(--space-3) 0;
padding-left: var(--space-2);
border-left: 3px solid var(--accent);
color: var(--muted);
font-style: italic;
}
/* ── Gate globale prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
scroll-behavior: auto !important;
}
html.has-js .reveal {
opacity: 1;
transform: none;
}
}