- Scène : « Utilité » (ce que l'histoire perd si on la coupe) et « Tactique et moral des adversaires » (comment ils se battent, quand ils fuient ou se rendent), dans l'éditeur, la vue et le PDF (réservés au MJ). - Arc : « Histoire cachée » (la vérité que les joueurs reconstituent) et « Accroches » (une par ligne), nouvelle section de l'éditeur ; dans le PDF, histoire cachée en encadré secret et accroches, version MJ uniquement. - PNJ : bloc « Rôle dans l'histoire », indépendant du système de jeu : rôle (opposant, allié, ressource, figurant), motivation, ce qu'il sait, signe distinctif. Dans le PDF, le signe distinctif se voit aussi en version joueurs ; rôle, motivation et savoir restent réservés au MJ. - Huit fiches du coach pour ces champs, rédigées pour LoreMind. - Relecture d'éditeur : WRITE-016 (opposant ou allié sans motivation, lien vers la fiche du PNJ), WRITE-017 (arc avec une seule accroche) ; un combat dont la tactique est écrite n'est plus signalé « sans but » (WRITE-008). - Migration V27 (colonnes scènes/arcs, fiche PNJ en JSON) ; champs conservés à l'export/import de campagne. Vérifié : core clean verify (1277 tests, dont règles, rendu MJ/joueurs, aller-retour export/import), web build + 844 vitest, lint sans erreur, migration V27 appliquée sur une base existante et fiche PNJ enregistrée puis signalée par la relecture dans le navigateur. À redéployer : core + web (migration V27).
178 lines
3.1 KiB
SCSS
178 lines
3.1 KiB
SCSS
.ne-page {
|
|
padding: 2rem 3rem;
|
|
color: #e5e7eb;
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.ne-header {
|
|
margin-bottom: 2rem;
|
|
|
|
.header-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
h1 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 1.75rem;
|
|
color: white;
|
|
margin: 0.75rem 0 0;
|
|
}
|
|
}
|
|
|
|
.btn-ai {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
background: rgba(167, 139, 250, 0.08);
|
|
border: 1px solid rgba(167, 139, 250, 0.4);
|
|
color: #a78bfa;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
transition: all 0.15s;
|
|
|
|
&:hover { background: rgba(167, 139, 250, 0.15); border-color: #a78bfa; }
|
|
&.active { background: #a78bfa; color: #0b1220; }
|
|
}
|
|
|
|
.btn-back {
|
|
background: transparent;
|
|
border: none;
|
|
color: #9ca3af;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
padding: 0.25rem 0;
|
|
font-size: 0.85rem;
|
|
|
|
&:hover { color: #e5e7eb; }
|
|
}
|
|
|
|
.ne-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
label {
|
|
color: #e5e7eb;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
|
|
.hint {
|
|
color: #6b7280;
|
|
font-size: 0.8rem;
|
|
margin: 0.4rem 0 0.5rem;
|
|
}
|
|
|
|
input[type="text"], textarea {
|
|
background: #0b1220;
|
|
border: 1px solid #1f2937;
|
|
border-radius: 8px;
|
|
color: #e5e7eb;
|
|
padding: 0.6rem 0.75rem;
|
|
font-size: 0.95rem;
|
|
font-family: inherit;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
border-color: #a78bfa;
|
|
}
|
|
}
|
|
}
|
|
|
|
.content-field textarea {
|
|
font-family: 'Fira Code', 'Cascadia Code', monospace;
|
|
font-size: 0.85rem;
|
|
line-height: 1.5;
|
|
resize: vertical;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
margin-top: 1rem;
|
|
align-items: center;
|
|
|
|
.spacer { flex: 1; }
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #a78bfa;
|
|
color: #0b1220;
|
|
border: none;
|
|
padding: 0.6rem 1.25rem;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
|
|
&:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
&:hover:not(:disabled) { background: #c4b5fd; }
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: transparent;
|
|
border: 1px solid #1f2937;
|
|
color: #9ca3af;
|
|
padding: 0.6rem 1.25rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
|
|
&:hover { border-color: #374151; color: #e5e7eb; }
|
|
}
|
|
|
|
.btn-danger {
|
|
background: transparent;
|
|
border: 1px solid rgba(248, 113, 113, 0.3);
|
|
color: #f87171;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
|
|
&:hover {
|
|
border-color: #f87171;
|
|
background: rgba(248, 113, 113, 0.08);
|
|
}
|
|
}
|
|
|
|
// Rôle dans l'histoire : bloc encadré, indépendant des champs du système de jeu.
|
|
.story-block {
|
|
border: 1px solid #1f2937;
|
|
border-radius: 10px;
|
|
padding: 0.9rem 1rem 1rem;
|
|
margin: 1rem 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.9rem;
|
|
|
|
legend {
|
|
padding: 0 0.4rem;
|
|
color: #e5e7eb;
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.hint { margin: 0; }
|
|
}
|