feat: implémentation complète du système Célestopol 1922 pour FoundryVTT v13

- DataModels (character, npc, anomaly, aspect, attribute, equipment)
- ApplicationV2 sheets (character 5 tabs, npc 3 tabs, 4 item sheets)
- DialogV2 pour les jets de dés avec phase de lune
- Templates Handlebars complets (fiches PJ/PNJ, items, jet, chat)
- Styles LESS → CSS compilé (thème vert foncé / orange CopaseticNF)
- i18n fr.json complet (clés CELESTOPOL.*)
- Point d'entrée fvtt-celestopol.mjs avec hooks init/ready
- Assets : polices CopaseticNF, images UI, icônes items
- Mise à jour copilot-instructions.md avec l'architecture réelle

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-28 09:28:34 +01:00
parent 446f9b7500
commit 64e23271df
54 changed files with 3433 additions and 4 deletions

158
styles/global.less Normal file
View File

@@ -0,0 +1,158 @@
// ─── Variables CSS (couleurs + typo) ────────────────────────────────────────
:root {
--cel-green: rgb(12, 76, 12);
--cel-green-light: rgb(20, 110, 20);
--cel-green-dark: rgb(6, 40, 6);
--cel-orange: #e07b00;
--cel-orange-light: #f0a040;
--cel-cream: #f5f0e8;
--cel-border: #8b7355;
--cel-shadow: rgba(0,0,0,0.4);
--cel-font-title: "CopaseticNF", "Palatino Linotype", serif;
--cel-font-body: "Palatino Linotype", "Book Antiqua", Palatino, serif;
--cel-font-ui: "Signika", "Palatino Linotype", sans-serif;
}
// ─── Sheet base layout ───────────────────────────────────────────────────────
.celestopol {
&.sheet {
background: var(--cel-cream);
font-family: var(--cel-font-body);
color: #1a1209;
.window-content {
padding: 0;
overflow: hidden;
display: flex;
flex-direction: column;
background: var(--cel-cream);
}
}
// ─── Header ──────────────────────────────────────────────────────────────
.sheet-header {
display: flex;
align-items: stretch;
background: var(--cel-green);
background-image: url("../assets/ui/fond_cadrille.jpg");
background-blend-mode: overlay;
padding: 8px;
gap: 8px;
border-bottom: 3px solid var(--cel-orange);
.actor-portrait {
width: 80px;
height: 80px;
object-fit: cover;
border: 2px solid var(--cel-orange);
cursor: pointer;
}
.header-fields {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
color: var(--cel-cream);
input[type="text"] {
background: transparent;
border: none;
border-bottom: 1px solid var(--cel-orange-light);
color: var(--cel-orange);
font-family: var(--cel-font-title);
font-size: 1.4em;
font-weight: bold;
padding: 2px 4px;
&::placeholder { color: var(--cel-orange-light); }
}
.actor-name {
font-family: var(--cel-font-title);
font-size: 1.4em;
color: var(--cel-orange);
margin: 0;
}
.concept-display,
input[name="system.concept"] {
font-style: italic;
font-size: 0.9em;
color: var(--cel-cream);
background: transparent;
border-bottom: 1px solid rgba(255,255,255,0.3);
}
}
.header-stats-row {
display: flex;
gap: 12px;
align-items: center;
.header-stat {
display: flex;
flex-direction: column;
align-items: center;
background: rgba(0,0,0,0.3);
border: 1px solid var(--cel-orange);
border-radius: 4px;
padding: 4px 8px;
label {
font-size: 0.65em;
text-transform: uppercase;
color: var(--cel-orange-light);
}
.stat-value {
font-size: 1.4em;
font-family: var(--cel-font-title);
color: var(--cel-orange);
font-weight: bold;
}
}
}
}
// ─── Tabs ────────────────────────────────────────────────────────────────
.sheet-tabs {
display: flex;
background: var(--cel-green-dark);
padding: 0;
border-bottom: 2px solid var(--cel-orange);
.item {
padding: 6px 12px;
color: var(--cel-cream);
font-family: var(--cel-font-title);
font-size: 0.85em;
text-transform: uppercase;
letter-spacing: 0.05em;
cursor: pointer;
border-right: 1px solid var(--cel-green-light);
transition: background 0.2s;
&:hover { background: var(--cel-green-light); }
&.active {
background: var(--cel-orange);
color: #1a0a00;
font-weight: bold;
}
}
}
// ─── Sheet body / tabs content ───────────────────────────────────────────
.sheet-body {
flex: 1;
overflow-y: auto;
padding: 8px;
}
.tab { display: none; &.active { display: block; } }
}