Contextes d'utilisationUsage Contexts

Le système distingue deux modes éditoriaux : Mode Produit pour les pages qui permettent d'agir, et Mode Marketing pour les pages qui communiquent une vision. The system defines two editorial modes: Product Mode for pages that enable action, and Marketing Mode for pages that communicate a vision.

Comparaison des modesMode comparison

DimensionDimension Mode Produit (SaaS)Product Mode (SaaS) Mode Marketing (Narratif)Marketing Mode (Narrative)
ObjectifGoalPermettre d'agirEnable actionCommuniquer une visionCommunicate a vision
LecteurReaderUtilisateur qui travailleUser workingVisiteur qui évalueVisitor evaluating
Espacement sectionsSection spacingsemantic.space.layout.section (48px)semantic.marketing.space.section-breathing (96px)
Typographie maxMax typographytypography.heading.1 (40px)marketing.typography.display (60px)
Mise en pageLayoutGrille régulièreRegular gridAsymétrie contrôléeControlled asymmetry
Attribut HTMLHTML attributeabsentabsentdata-context="marketing"

Arbre de décisionDecision tree

QuestionQuestion RéponseAnswer ModeMode
La page convainc ou onboarde un visiteur ?Does the page convince or onboard a visitor?OuiYesMarketing
La page documente un composant ou un token ?Does the page document a component or token?OuiYesProduit
Doute ?Unsure?Produit (défautdefault)

Mapping des pagesPage mapping

PagePage ModeMode JustificationRationale
index.htmlMarketingPrésente la vision, onboardePresents the vision, onboards
get-started.htmlMarketingConvainc et guide l'adoptionConvinces and guides adoption
agents/index.htmlMarketingExplique le système agentiqueExplains the agentic system
foundations/*ProduitProductDocumentation des fondationsFoundation documentation
components/*ProduitProductContrats de composantsComponent contracts
decisions/*ProduitProductArchive des ADRsADR archive

Tokens MarketingMarketing tokens

Ces tokens sont réservés au Mode Marketing. Ne pas utiliser dans les composants ou pages Produit. These tokens are reserved for Marketing Mode. Do not use in components or Product pages.

Token CSS DescriptionDescription ValeurValue
--agtc-semantic-marketing-typography-display-sizeTitre d'accroche — hero marketing (60px)Display headline — marketing hero (60px)3.75rem
--agtc-semantic-marketing-typography-display-weightGraisse du titre displayDisplay title weight700
--agtc-semantic-marketing-typography-display-line-heightInterligne display (ratio)Display line height (ratio)1.0
--agtc-semantic-marketing-typography-eyebrow-sizeÉtiquette eyebrow (12px)Eyebrow label (12px)0.75rem
--agtc-semantic-marketing-typography-eyebrow-weightGraisse eyebrowEyebrow weight700
--agtc-semantic-marketing-space-section-breathingRespiration entre sections (96px)Section breathing room (96px)96px
--agtc-semantic-marketing-space-hero-gapEspace vertical hero (120px)Hero vertical gap (120px)120px

Implémentation CSSCSS implementation

/* Activation du Mode Marketing */
[data-context="marketing"] .hero-eyebrow {
  font-size: var(--agtc-semantic-marketing-typography-eyebrow-size);   /* 12px */
  font-weight: var(--agtc-semantic-marketing-typography-eyebrow-weight);
  letter-spacing: .12em;
  text-transform: uppercase;
}
[data-context="marketing"] .hero-title {
  font-size: var(--agtc-semantic-marketing-typography-display-size);   /* 60px */
  font-weight: var(--agtc-semantic-marketing-typography-display-weight);
  line-height: var(--agtc-semantic-marketing-typography-display-line-height);
}
[data-context="marketing"] .marketing-section {
  padding-block: var(--agtc-semantic-marketing-space-section-breathing); /* 96px */
}
[data-context="marketing"] .marketing-hero {
  padding-block: var(--agtc-semantic-marketing-space-hero-gap); /* 120px */
}

DOs et DON'TsDOs and DON'Ts

À faire (Mode Marketing)Do (Marketing Mode)

  • Utiliser semantic.marketing.* pour la typographie et l'espacement heroUse semantic.marketing.* for hero typography and spacing
  • Déclarer data-context="marketing" sur <body>Declare data-context="marketing" on <body>
  • Headlines = assertions, pas des teasers : "Design tokens that work."Headlines = statements, not teasers: "Design tokens that work."
  • Hero image = UI réelle ou artefact réel (ou texte seul)Hero image = real UI or real artifact (or text-only)

À éviterDon't

  • Appliquer data-context="marketing" à une page de documentationApply data-context="marketing" to a documentation page
  • Utiliser des valeurs en dur (96px, 120px) — toujours via les tokensUse hard-coded values (96px, 120px) — always via tokens
  • Plus d'un gradient par page, gradient sur les boutons, glassmorphismMore than one gradient per page, gradient on buttons, glassmorphism
  • Buzzwords : "revolutionize", "seamless", "game-changer", "unlock"Buzzwords: "revolutionize", "seamless", "game-changer", "unlock"

Voir aussi :See also: ADR-057

Contribuer à ce projet Contribute to this project

Ce système est ouvert aux contributions — tokens, composants, décisions architecturales, corrections d'accessibilité ou documentation. Toute amélioration est bienvenue. This system welcomes contributions — tokens, components, architectural decisions, accessibility fixes, or documentation. Every improvement counts.

Voir sur GitHub View on GitHub