Bêta 1.7.0 : catalogue de sorts, entraînement aux règles, fiches tirées des règles

Systèmes de jeu
- Édition d'un système en onglets : Présentation, Règles, Structure des fiches, Sorts ;
  recherche dans les règles, sections repliées, enregistrement toujours visible.
- Catalogue de sorts (V32) : un sort par fiche, champs propres au système, recherche et
  filtres par niveau et par école ; inclus dans l'export et l'import du contenu.
- Proposition de sorts à partir des règles : lecture morceau par morceau, un sort n'est
  proposé que si son nom et un passage cité se retrouvent dans le texte.
- Sorts connus des fiches PJ, PNJ et ennemi (V33, table à part) et onglet Sorts du mode
  séance.
- Proposition des champs d'une fiche (PJ, PNJ, ennemi) à partir des règles.

Campagnes
- Entraînement aux règles : situations tirées des scènes, corrigé qui cite les règles ;
  sections et citations dans la langue de l'interface.
- Fiches de campagne en noyau + rubriques (scène, arc, aventure, quête annexe).
- Vocabulaire : aventure, ordre libre, quête annexe.
- Méthode guidée mémorisée sur l'aventure (V30).

Livret PDF
- Thème « Parchemin », placement des illustrations (V31), renvois vers les PNJ.

Bureau et IA
- Journal du Brain (logs/brain.log) et erreurs de l'IA mieux rapportées.

Passage à la 1.7.0-beta.
This commit is contained in:
2026-11-13 01:13:44 +01:00
parent 0d56f8527b
commit 6c1d74f9a5
354 changed files with 22687 additions and 1584 deletions
@@ -63,6 +63,9 @@ brain.internal-secret=${BRAIN_INTERNAL_SECRET:loremind-local-secret}
brain.sidecar.enabled=${BRAIN_SIDECAR_ENABLED:true}
# Le Brain ecrit son dossier data/ (index vectoriel, settings) sous ce dossier.
brain.sidecar.working-dir=${loremind.home}/brain
# Journal du Brain (requetes, erreurs du fournisseur IA, traces Python), a cote de
# celui du Core. Archive en brain.log.1 au demarrage quand il depasse 5 Mo.
brain.sidecar.log-file=${loremind.home}/logs/brain.log
# Commande de lancement. VIDE par defaut : le dev qui lance le Brain a la main
# n'est pas perturbe. Le packaging (jpackage) la renseigne vers l'exe PyInstaller.
# - Empaquete : chemin de l'exe, ex. C:/Program Files/LoreMind/brain/loremind-brain.exe
@@ -53,7 +53,10 @@ spring.web.cors.allow-credentials=true
# Configuration du Brain (service IA Python)
brain.base-url=${BRAIN_BASE_URL:http://localhost:8000}
brain.timeout-seconds=120
# Attente d'une reponse one-shot du Brain. Les modeles a raisonnement (Mistral
# Large 4...) reflechissent avant de repondre : une generation courte peut
# depasser 100 s. Surchargeable via env.
brain.timeout-seconds=${BRAIN_TIMEOUT_SECONDS:300}
# Timeout dedie a l'import de PDF (regles/campagne) : map-reduce LLM sur un
# livre entier => potentiellement plusieurs minutes. Surchargeable via env.
brain.import-timeout-seconds=${BRAIN_IMPORT_TIMEOUT_SECONDS:600}
@@ -0,0 +1,5 @@
-- Méthodes guidées (mentor) : le chapitre garde la méthode qu'il suit (« five-room »,
-- « investigation »…) et chaque scène le rôle qu'elle y tient (« room3 », « conclusion »…).
-- Sans cela, la méthode disparaissait dès la création du squelette.
ALTER TABLE chapters ADD COLUMN guided_method VARCHAR(64);
ALTER TABLE scenes ADD COLUMN guided_role VARCHAR(64);
@@ -0,0 +1,7 @@
-- Livret PDF (thème Parchemin) : l'auteur choisit le placement d'une illustration dans la
-- galerie d'un arc, d'un chapitre, d'une scène ou d'une quête (bandeau, pleine page, fondue
-- en bas de page…). Carte JSON « id d'image → placement » ; absente ou vide = règles par défaut.
ALTER TABLE arcs ADD COLUMN illustration_placements TEXT;
ALTER TABLE chapters ADD COLUMN illustration_placements TEXT;
ALTER TABLE scenes ADD COLUMN illustration_placements TEXT;
ALTER TABLE quests ADD COLUMN illustration_placements TEXT;
@@ -0,0 +1,29 @@
-- Catalogue de sorts d'un système de jeu : un sort = une fiche (nom, niveau, école,
-- description) + les valeurs des champs propres au système (portée, durée, coût…), dont
-- la liste est le « modèle de sort » du système. Les règles de magie restent dans les
-- sections de règles : rien d'existant n'est modifié.
ALTER TABLE game_systems ADD COLUMN spell_template TEXT;
create table spells (
"order" integer not null,
game_system_id bigint not null,
created_at timestamp(6) not null,
id bigint generated by default as identity,
updated_at timestamp(6) not null,
description TEXT,
field_values TEXT,
level varchar(255),
name varchar(255) not null,
school varchar(255),
primary key (id)
);
create index ix_spells_game_system
on spells (game_system_id);
-- Supprimer un système supprime son catalogue.
alter table spells
add constraint fk_spells_game_system
foreign key (game_system_id)
references game_systems
on delete cascade;
@@ -0,0 +1,25 @@
-- Sorts connus d'une fiche (PJ, PNJ, ennemi) : liens vers des sorts du catalogue du système.
-- Table à part : les tables des fiches ne sont pas modifiées. Supprimer un sort du
-- catalogue supprime ses liens ; owner_type vaut 'character', 'npc' ou 'enemy'.
create table sheet_spells (
"order" integer not null,
id bigint generated by default as identity,
owner_id bigint not null,
spell_id bigint not null,
owner_type varchar(16) not null,
primary key (id)
);
create index ix_sheet_spells_owner
on sheet_spells (owner_type, owner_id);
alter table sheet_spells
add constraint uk_sheet_spells_owner_spell
unique (owner_type, owner_id, spell_id);
alter table sheet_spells
add constraint fk_sheet_spells_spell
foreign key (spell_id)
references spells
on delete cascade;
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,94 @@
Copyright 2020 The Cinzel Project Authors (https://github.com/NDISCOVER/Cinzel)
Copyright © 2012 Natanael Gama (www.ndiscovered.com), with Reserved Font Name “Cinzel Decorative”
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
Copyright 2010 The Crimson Text Project Authors (https://github.com/googlefonts/Crimson)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,24 @@
/* Theme « Parchemin », format A5 : surcharges ajoutees apres export-parchment.css (page etroite,
une colonne, couverture sur une seule page).
ATTENTION : ce CSS est injecte tel quel dans le document XML — ni esperluette ni chevron ici. */
.cover { padding-top: 3cm; }
.cover.has-art { padding-top: .2cm; }
.cover.cover-illustrated { padding: 0; }
.cover-kicker { font-size: 8pt; letter-spacing: .24em; }
.cover-title { font-size: 21pt; margin-top: .3cm; }
.cover-subtitle { font-size: 12pt; margin-top: .2cm; }
.cover-rule { width: 4.2cm; margin: .35cm auto; }
.cover-art { margin: .1cm 0 .35cm; }
.cover-meta { font-size: 9.5pt; }
.cover-edition { margin-top: .25cm; }
.cover-author { margin-top: .5cm; font-size: 10.5pt; }
.cover-version { margin-top: .15cm; }
.cover-caption { bottom: .8cm; left: .9cm; right: .9cm; padding: .45cm .5cm .4cm; }
.plate .caption { right: .6cm; bottom: .6cm; }
h1.part, h1.toc-title { font-size: 18pt; }
.arc-head { font-size: 14pt; }
.chapter-head { font-size: 11.5pt; }
.scene-head { font-size: 10pt; }
.persona-name { font-size: 11.5pt; }
.stat-array th { padding: 3pt 4pt 0; }
.stat-array td { padding: 0 4pt 3pt; }
@@ -0,0 +1,8 @@
/* Theme « Parchemin », mode impression : surcharges ajoutees en dernier. Ni fond parchemin
(PdfParchmentDecor ne le dessine pas) ni aplats de couleur ; les filets et la typographie
portent la hierarchie.
ATTENTION : ce CSS est injecte tel quel dans le document XML — ni esperluette ni chevron ici. */
.readaloud, .secret, .combat, .warning, .card { background: none; }
.stats-table tr.alt td, .stats-table tr.alt th { background: none; border-bottom: .5pt solid #b9a273; }
.cover-art img { border-width: .75pt; }
.frame { background: none; }
@@ -0,0 +1,208 @@
/* Theme « Parchemin » : habillage « livre de jeu de role » ajoute apres export.css (dont les
polices sont remplacees par PdfExportService). Le fond parchemin (cartes en paysage comprises) et le pied de page orne
sont dessines apres la pagination par PdfParchmentDecor ; ici, uniquement la typographie,
les couleurs et les encadres. Palette : encre brune, titres brun-rouge, filets dores.
ATTENTION : ce CSS est injecte tel quel dans le document XML — ni esperluette ni chevron ici. */
@page {
@top-center { content: '__HEADER__'; font-family: __TITLE_FONT__; font-size: 7pt; letter-spacing: .14em;
color: #8a6a34; }
/* Numeros de page dans la police de texte : le « 1 » de la police de titres se lit comme un I. */
@bottom-center { content: counter(page); font-size: 10.5pt; font-weight: bold; color: #7a2a1a; }
}
@page:first { @top-center { content: none; border: 0; } @bottom-center { content: none; } }
body { margin: 0; color: #2b2118; line-height: 1.3; word-wrap: break-word; }
/* --- Narration en deux colonnes (A4 et Letter). Memes precautions que l'edition A4 classique :
le moteur de colonnes ne sait deplacer entier qu'un bloc en ligne, et peint mal le fond d'un
bloc coupe — les encadres longs restent donc fluides, sans fond ni bordure. --- */
.editorial-flow { column-count: 2; column-gap: .8cm; padding-top: .12cm; }
.editorial-flow p, .editorial-flow .field, .editorial-flow .box { orphans: 3; widows: 3; }
.editorial-flow .prose { text-align: left; }
.editorial-flow .box, .editorial-flow .illus { display: inline-block; width: 100%; box-sizing: border-box; }
.editorial-flow .box.flow { display: block; background: none; border: 0; padding: .1cm 0; }
.editorial-flow .box.flow .box-label { border-top: 1pt solid #b08d4a; padding-top: .12cm; }
.editorial-flow .arc-head, .editorial-flow .chapter-head, .editorial-flow .scene-head,
.editorial-flow .section-head { display: inline-block; width: 100%; box-sizing: border-box; }
/* Une piece peut passer d'une colonne a l'autre : son filet lateral serait peint au mauvais endroit. */
.editorial-flow .room { border-left: 0; padding-left: .2cm; }
/* --- Couverture --- */
.cover { padding-top: 4.2cm; }
.cover.has-art { padding-top: .5cm; }
.cover-kicker { font-family: __TITLE_FONT__; font-size: 10pt; letter-spacing: .3em; color: #8a6a34; }
.cover-title { font-family: __TITLE_FONT__; font-weight: bold; font-size: 31pt; line-height: 1.14;
letter-spacing: .02em; text-transform: none; color: #7a2a1a; }
.cover-subtitle { font-style: italic; font-size: 15pt; color: #4a3a22; }
.cover-rule { width: 6cm; border-bottom: 3pt double #b08d4a; }
.cover-art { margin: .35cm 0 .5cm; }
.cover-art img { border: 1.5pt solid #5c4326; }
.cover-meta { font-size: 11pt; color: #5c4a2a; letter-spacing: .03em; }
.cover-edition { font-family: __TITLE_FONT__; color: #8a6a34; }
.cover-author { font-family: __TITLE_FONT__; font-size: 12pt; color: #2b2118; margin-top: .7cm; }
.cover-version { font-size: 9.5pt; color: #8a7a5a; }
.cover-desc { color: #3b2f20; }
/* Couverture illustree, a fond perdu dans tous les formats (pas de parchemin dessous). L'image
arrive deja recadree au format de la page : rien ne depasse, rien n'est a rogner. */
@page illustrated-cover { size: __PAGE_SIZE__; margin: 0;
@top-center { content: none; border: 0; }
@bottom-center { content: none; }
}
.cover-illustrated { page: illustrated-cover; position: relative; width: __PAGE_W__; height: __PLATE_H__;
padding: 0; margin: 0; overflow: hidden; background: #2a120b; }
.cover-background { position: absolute; }
.cover-caption { position: absolute; bottom: 1.2cm; left: 1.3cm; right: 1.3cm; background: #2a120b;
border-top: 2pt solid #b08d4a; border-bottom: 2pt solid #b08d4a; padding: .7cm .7cm .6cm; }
.cover-caption .cover-title { color: #f6ead0; }
.cover-caption .cover-kicker, .cover-caption .cover-edition { color: #d9bd7e; }
.cover-caption .cover-subtitle, .cover-caption .cover-author { color: #f6ead0; }
.cover-caption .cover-meta, .cover-caption .cover-version { color: #dccfae; }
.cover-caption .cover-rule { border-color: #b08d4a; }
/* --- Credits, sommaire --- */
.credits-page { font-size: 10pt; }
.credits-title { font-family: __TITLE_FONT__; color: #7a2a1a; }
.credits-subtitle { font-style: italic; color: #4a3a22; }
.legal { border-top: 1pt solid #b08d4a; font-size: 9pt; color: #4a3a22; }
.toc td { border-bottom: 1pt dotted #b9a273; }
.toc td.p { font-size: 10pt; color: #7a2a1a; }
.toc tr.lvl0 td { font-size: 11pt; color: #7a2a1a; border-bottom: 1pt solid #b08d4a; }
.toc tr.lvl0 td.t { font-family: __TITLE_FONT__; font-size: 10.5pt; }
.toc tr.lvl1 td.t { font-size: 10.5pt; }
.toc tr.lvl2 td.t { font-size: 9.5pt; font-style: italic; color: #5c4a2a; }
/* --- Titres : capitales brun-rouge, filet dore --- */
h1.part, h1.toc-title { font-family: __TITLE_FONT__; font-weight: normal; font-size: 25pt; line-height: 1.14;
letter-spacing: .01em; text-transform: none; color: #7a2a1a; border-bottom: 3pt double #b08d4a;
padding-bottom: .16cm; margin: 0 0 .5cm; }
h2.section-head { font-family: __TITLE_FONT__; font-size: 13pt; color: #7a2a1a;
border-bottom: .75pt solid #b08d4a; padding-bottom: 1pt; }
h3.folder { font-family: __TITLE_FONT__; font-size: 10.5pt; letter-spacing: .08em; text-transform: none;
color: #8a6a34; border-bottom: .5pt solid #c9ab6b; }
.arc { margin: 0 0 .4cm; }
.arc-head { background: none; border-radius: 0; padding: 0 0 .1cm; font-family: __TITLE_FONT__; font-weight: normal;
font-size: 18pt; line-height: 1.16; color: #7a2a1a; border-bottom: 1.5pt solid #b08d4a; margin: 0 0 .3cm; }
.chapter { margin: .5cm 0 .35cm; }
.chapter-head { background: none; border: 0; border-bottom: .75pt solid #b08d4a; padding: 0 0 .06cm;
font-family: __TITLE_FONT__; font-size: 13.5pt; line-height: 1.2; color: #7a2a1a; }
.scene { border: 0; border-radius: 0; background: none; padding: 0; margin: .42cm 0 .3cm; }
.scene-head { font-family: __TITLE_FONT__; font-size: 10.5pt; letter-spacing: .02em; color: #4a1a10;
border-bottom: .5pt solid #c9ab6b; padding-bottom: .05cm; margin-bottom: .1cm; }
.scene-meta { color: #6b5836; margin: 0 0 .14cm; }
.room { background: none; border: 0; border-left: 1.5pt solid #c9ab6b; border-radius: 0;
padding: 0 0 0 .25cm; margin: .3cm 0; }
.room-head { font-family: __TITLE_FONT__; font-size: 9.5pt; color: #6b4a1e; }
.eyebrow, .eyebrow-light { font-family: __TITLE_FONT__; font-size: 6pt; letter-spacing: .2em; color: #9a7a3c;
margin-bottom: .04cm; }
/* --- Texte courant : libelles en gras brun-rouge, a la suite du texte --- */
.field { margin: .17cm 0; }
.field-label { font-size: 1em; text-transform: none; letter-spacing: 0; color: #7a2a1a; padding-right: 0; }
div.field-label { font-family: __TITLE_FONT__; font-size: 7.5pt; letter-spacing: .1em; color: #8a6a34; }
/* « Ambiance. Texte… » : le point et l'espace suivent le libelle (la marge du span passerait avant le point). */
span.field-label:after { content: "."; padding-right: .13cm; }
/* Une liste ne se separe pas de son libelle (« Sorties. » seul en bas de page). */
.field ul { page-break-before: avoid; }
p.prose { margin: 0 0 .18cm; }
.lead { margin: .12cm 0 .2cm; }
/* Lettrine sur trois lignes (span flottant pose par PdfHtml.lead). */
.dropcap { float: left; font-family: __TITLE_FONT__; font-weight: normal; font-size: 5.08em; line-height: .87;
margin-top: -.31em; padding: 0 .04em 0 0; color: #7a2a1a; }
/* --- Encadres --- */
/* Un encadre court reste entier (coupe, son fond laisserait une bande vide en bas de page) ;
un encadre long (classe flow) peut passer a la page suivante. */
.box { border-radius: 0; padding: .22cm .32cm; margin: .28cm 0; page-break-inside: avoid; }
.box.flow { page-break-inside: auto; }
.box-label { font-family: __TITLE_FONT__; font-size: 7.5pt; letter-spacing: .1em; text-transform: none; }
.box ul { padding-left: .45cm; margin: .1cm 0; }
/* A lire a voix haute : beige clair, bordures laterales. */
.readaloud { background: #f8f2de; border: 0; border-left: 2pt solid #7a2a1a; border-right: 2pt solid #7a2a1a;
font-style: normal; color: #2b2118; }
.readaloud .box-label { color: #7a2a1a; }
/* Secret / notes du MJ : vert-de-gris, filets haut et bas. */
.secret { background: #dfe2c8; border: 0; border-top: 1.5pt solid #4d5233; border-bottom: 1.5pt solid #4d5233; }
.secret .box-label { color: #4d5233; }
.combat { background: #efd8c4; border: 0; border-left: 3pt solid #7a2a1a; }
.combat .box-label { color: #7a2a1a; }
.warning { background: #f1dfae; border: 0; border-left: 3pt solid #b08d4a; }
.warning .box-label { color: #7a5a1c; }
/* --- Fiches (PNJ, tables, lore) et blocs de statistiques (adversaires) --- */
.card { background: #f8f2de; border: 0; border-top: 2.5pt solid #b08d4a; border-bottom: 2.5pt solid #b08d4a;
border-radius: 0; padding: .28cm .4cm .3cm; margin: .4cm 0; }
.persona-name { font-family: __TITLE_FONT__; font-size: 13pt; color: #7a2a1a; margin-bottom: .12cm; }
.level { font-family: 'Crimson Text', serif; font-size: 10pt; font-style: italic; color: #5c4a2a; }
.persona-portrait { width: 3.3cm; padding: .06cm .5cm 0 0; }
.statblock .persona-name { border-bottom: 1.5pt solid #7a2a1a; padding-bottom: 1pt; }
.statblock .stat-array { width: 100%; border-top: 1.5pt solid #7a2a1a; border-bottom: 1.5pt solid #7a2a1a; }
.statblock .stats-table { border-top: 1.5pt solid #7a2a1a; }
.stat-array { font-size: .95em; margin: .1cm 0 .22cm; }
.stat-array th { background: none; border: 0; color: #7a2a1a; padding: 3pt 8pt 0; }
.stat-array td { border: 0; padding: 0 8pt 3pt; }
/* --- Tableaux : lignes alternees, en-tete souligne de rouge --- */
.stats-table { font-size: .93em; }
.stats-table th, .stats-table td { border-bottom: 0; padding: 2.5pt 6pt; }
.stats-table thead th { background: none; color: #2b2118; border-bottom: 1pt solid #7a2a1a; }
.stats-table tbody th { background: none; color: #7a2a1a; }
.stats-table tr.alt td, .stats-table tr.alt th { background: #e7dcb9; }
.stats-table .roll-col { color: #7a2a1a; }
.stats-table .entry-detail { color: #4a3a22; font-size: .93em; font-style: italic; }
.tech-table { width: 100%; }
/* --- Illustrations : cadre dessine (deux filets, quatre coins), legende sobre ---
Le cadre est trace en CSS : aucune image de cadre. PdfFigures donne les largeurs. */
.illus { margin: .35cm 0; }
.figure { text-align: center; }
.figure.center { margin: 0 auto; }
.frame { position: relative; border: 1pt solid #5c4326; padding: 2pt; background: #f8f2de; }
.frame img, .illus .frame img { display: block; margin: 0 auto; border: .6pt solid #b08d4a; border-radius: 0; }
.fc { position: absolute; width: 3.6pt; height: 3.6pt; background: #7a2a1a; }
.fc.tl { top: -1.8pt; left: -1.8pt; }
.fc.tr { top: -1.8pt; right: -1.8pt; }
.fc.bl { bottom: -1.8pt; left: -1.8pt; }
.fc.br { bottom: -1.8pt; right: -1.8pt; }
.caption, .illus .caption { font-size: .84em; font-style: italic; font-weight: normal; line-height: 1.2;
letter-spacing: 0; text-transform: none; text-align: center; color: #6b5836; margin-top: .09cm; }
/* Image habillee par le texte : flottante, dans un bloc que le moteur deplace entier (une image
flottante laissee libre est coupee en deux au bas d'une colonne ou d'une page). */
.figure-lead { display: inline-block; width: 100%; }
.figure.wrap { float: right; margin: .08cm 0 .1cm .3cm; }
/* Rangee d'images (champ IMAGE a plusieurs images). */
.gallery { margin: .3cm 0; page-break-inside: avoid; }
table.gallery-row { border-collapse: collapse; margin: 0 auto .06cm; }
table.gallery-row td { padding: 0 .15cm; vertical-align: middle; }
/* Texte d'un arc reparti sur deux colonnes de meme hauteur (PdfFigures.balanced), hors du flux en
colonnes que le moteur ne sait pas equilibrer. */
table.balanced { width: 100%; border-collapse: collapse; table-layout: fixed; page-break-inside: avoid; }
table.balanced td { width: 50%; vertical-align: top; padding: 0; }
table.balanced td.bl { padding-right: .4cm; }
table.balanced td.br { padding-left: .4cm; }
table.balanced .prose { text-align: left; }
/* Ouverture d'arc, de chapitre ou de quete : bandeau pleine largeur, hors colonnes, en haut de page. */
.opener { margin: 0 0 .5cm; page-break-inside: avoid; }
.opener.fresh { page-break-before: always; }
.opener-break { page-break-before: always; height: .02cm; }
/* Planche pleine page, a fond perdu : page sans marges ni titre courant ; l'image arrive recadree. */
@page plate { size: __PAGE_SIZE__; margin: 0;
@top-center { content: none; border: 0; }
@bottom-center { content: none; }
}
.plate { page: plate; position: relative; width: __PAGE_W__; height: __PLATE_H__; background: #2a120b; }
.plate img { display: block; }
.plate .caption { position: absolute; right: .9cm; bottom: .8cm; margin: 0; padding: .1cm .32cm .12cm;
background: #2a120b; color: #f6ead0; border-top: .75pt solid #b08d4a; border-bottom: .75pt solid #b08d4a; }
/* Illustrations fondues (placement choisi par l'auteur) : emplacements vides ; l'image est dessinee apres la pagination
(PdfParchmentDecor), sous le texte. En bas de page : marque la fin du texte, la suite commence une
page. En ouverture : vide de la hauteur du bandeau, en haut d'une page. */
.fade-bottom { height: .02cm; page-break-after: always; }
.fade-mark { height: .02cm; }
.fade-top.fresh { page-break-before: always; }
/* --- Renvois, annexes, cartes --- */
a.xref { color: #7a2a1a; border-bottom: 0; }
a.pref:after { font-size: .88em; font-style: italic; color: #8a6a34; }
.annex-intro { font-size: .95em; color: #4a3a22; }
.annex-kind { font-family: __TITLE_FONT__; font-size: 6.5pt; color: #8a6a34; }
.annex-warn { color: #9b2f1f; }
.map-title { font-family: __TITLE_FONT__; color: #7a2a1a; }
.map-page img { border: 1.5pt solid #5c4326; }
+2 -1
View File
@@ -137,7 +137,8 @@ a.pref:after { content: "(p. " target-counter(attr(href), page) ")"; font-family
font-size: 7.5pt; color: #8a7bc8; }
/* --- Annexes --- */
.annex-intro { color: #555; font-size: 9pt; }
.annex-table td { vertical-align: top; }
.annex-table td { vertical-align: top; word-wrap: normal; }
.annex-table th { white-space: nowrap; }
.annex-table .page-col { width: 1.6cm; text-align: right; }
ul.annex-list { margin: 0; padding-left: .45cm; }
ul.annex-list li { margin: 0 0 .04cm; }