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.
375 lines
7.3 KiB
SCSS
375 lines
7.3 KiB
SCSS
.training {
|
|
max-width: 760px;
|
|
padding: 2rem;
|
|
margin: 0 auto;
|
|
color: #d1d5db;
|
|
|
|
h1 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 1.5rem;
|
|
color: white;
|
|
margin: 1rem 0 0.25rem;
|
|
|
|
lucide-icon { color: #fbbf24; }
|
|
}
|
|
|
|
h2 { font-size: 1.05rem; color: white; margin: 0 0 0.35rem; }
|
|
h3 { font-size: 0.95rem; color: white; margin: 1rem 0 0.35rem; }
|
|
|
|
.btn-primary,
|
|
.btn-secondary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
padding: 0.6rem 1.1rem;
|
|
font-size: 0.9rem;
|
|
text-decoration: none;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
padding: 1rem;
|
|
}
|
|
}
|
|
|
|
.training-back {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
color: #9ca3af;
|
|
font-size: 0.85rem;
|
|
text-decoration: none;
|
|
|
|
&:hover { color: white; }
|
|
}
|
|
|
|
.training-system {
|
|
color: #9ca3af;
|
|
font-size: 0.9rem;
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
.training-intro {
|
|
line-height: 1.55;
|
|
margin: 0 0 1.25rem;
|
|
}
|
|
|
|
.training-status { color: #9ca3af; }
|
|
|
|
.training-hint {
|
|
color: #9ca3af;
|
|
font-size: 0.85rem;
|
|
line-height: 1.5;
|
|
margin: 0 0 0.6rem;
|
|
|
|
&--warn { color: #fde68a; margin-top: 0.6rem; }
|
|
}
|
|
|
|
.training-error {
|
|
color: #fecaca;
|
|
background: rgba(239, 68, 68, 0.12);
|
|
border: 1px solid rgba(239, 68, 68, 0.35);
|
|
border-radius: 8px;
|
|
padding: 0.6rem 0.8rem;
|
|
font-size: 0.88rem;
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
.training-empty {
|
|
background: #111827;
|
|
border: 1px solid #1f2937;
|
|
border-radius: 12px;
|
|
padding: 1.25rem;
|
|
|
|
p { margin: 0 0 1rem; line-height: 1.5; }
|
|
}
|
|
|
|
.training-block {
|
|
background: #111827;
|
|
border: 1px solid #1f2937;
|
|
border-radius: 12px;
|
|
padding: 1rem 1.15rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.block-head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.link-button {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
color: #a5b4fc;
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
|
|
&:hover { color: white; text-decoration: underline; }
|
|
&:focus-visible { outline: 2px solid #6c63ff; outline-offset: 2px; }
|
|
}
|
|
|
|
.adventure {
|
|
border: none;
|
|
padding: 0;
|
|
margin: 0.75rem 0 0;
|
|
|
|
legend {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0;
|
|
font-weight: 600;
|
|
color: white;
|
|
}
|
|
|
|
.check-list { padding-left: 1.5rem; }
|
|
}
|
|
|
|
.check-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0.35rem 0 0;
|
|
|
|
li {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.2rem 0;
|
|
}
|
|
|
|
/* Le titre pousse les étiquettes (langue, progression) à droite. */
|
|
&--sections .check { margin-right: auto; }
|
|
}
|
|
|
|
.check {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
cursor: pointer;
|
|
min-width: 0;
|
|
|
|
input { accent-color: #6c63ff; flex-shrink: 0; }
|
|
|
|
&--disabled { opacity: 0.5; cursor: not-allowed; }
|
|
}
|
|
|
|
.tag {
|
|
flex-shrink: 0;
|
|
padding: 0.1rem 0.5rem;
|
|
border-radius: 999px;
|
|
background: #1f2937;
|
|
color: #9ca3af;
|
|
font-size: 0.72rem;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
|
|
&--review { background: rgba(251, 191, 36, 0.15); color: #fde68a; }
|
|
&--new { background: rgba(108, 99, 255, 0.18); color: #c7d2fe; }
|
|
}
|
|
|
|
.training-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
margin-top: 1rem;
|
|
|
|
.training-hint { margin: 0; }
|
|
}
|
|
|
|
// ─────────────── Attente ───────────────
|
|
|
|
.training-wait {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
background: #111827;
|
|
border: 1px solid #1f2937;
|
|
border-radius: 12px;
|
|
padding: 1.25rem;
|
|
|
|
.training-hint { margin: 0; }
|
|
}
|
|
|
|
.training-wait-title { color: white; font-weight: 600; margin: 0 0 0.25rem; }
|
|
|
|
.spinner {
|
|
flex-shrink: 0;
|
|
width: 22px;
|
|
height: 22px;
|
|
border: 3px solid #374151;
|
|
border-top-color: #6c63ff;
|
|
border-radius: 50%;
|
|
animation: training-spin 0.9s linear infinite;
|
|
|
|
@media (prefers-reduced-motion: reduce) { animation: none; }
|
|
}
|
|
|
|
@keyframes training-spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
// ─────────────── Situation ───────────────
|
|
|
|
.drill-head {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.6rem;
|
|
margin: 0.5rem 0 0.75rem;
|
|
}
|
|
|
|
.drill-progress { color: white; font-weight: 600; font-size: 0.9rem; }
|
|
.drill-stop { margin-left: auto; }
|
|
|
|
.drill {
|
|
background: #111827;
|
|
border: 1px solid #1f2937;
|
|
border-radius: 12px;
|
|
padding: 1.15rem;
|
|
|
|
textarea {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 0.65rem 0.8rem;
|
|
background: #0b1220;
|
|
color: #e5e7eb;
|
|
border: 1px solid #374151;
|
|
border-radius: 8px;
|
|
font: inherit;
|
|
line-height: 1.5;
|
|
resize: vertical;
|
|
|
|
&:focus { outline: none; border-color: #6c63ff; }
|
|
}
|
|
}
|
|
|
|
.drill-situation {
|
|
color: white;
|
|
font-size: 1.02rem;
|
|
line-height: 1.6;
|
|
white-space: pre-line;
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
.drill-label {
|
|
display: block;
|
|
color: #9ca3af;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.answer-key {
|
|
margin-top: 1.25rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid #1f2937;
|
|
|
|
blockquote {
|
|
margin: 0;
|
|
padding: 0.7rem 0.9rem;
|
|
border-left: 3px solid #fbbf24;
|
|
background: rgba(251, 191, 36, 0.07);
|
|
border-radius: 0 8px 8px 0;
|
|
color: #f3f4f6;
|
|
line-height: 1.6;
|
|
white-space: pre-line;
|
|
}
|
|
}
|
|
|
|
.answer-source { color: #fde68a; font-size: 0.82rem; margin: 0 0 0.4rem; }
|
|
.answer-ruling { line-height: 1.6; white-space: pre-line; margin: 0 0 0.5rem; }
|
|
|
|
.compare {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.6rem;
|
|
margin-top: 1rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid #1f2937;
|
|
|
|
.training-hint,
|
|
.training-error { margin: 0; }
|
|
}
|
|
|
|
.verdict {
|
|
flex-shrink: 0;
|
|
padding: 0.2rem 0.65rem;
|
|
border-radius: 999px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
|
|
&--right { background: rgba(34, 197, 94, 0.15); color: #bbf7d0; }
|
|
&--partial { background: rgba(251, 191, 36, 0.15); color: #fde68a; }
|
|
&--off { background: rgba(239, 68, 68, 0.15); color: #fecaca; }
|
|
}
|
|
|
|
.compare-feedback { flex: 1 1 100%; line-height: 1.55; margin: 0; }
|
|
|
|
.rate {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.6rem;
|
|
margin-top: 1rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid #1f2937;
|
|
}
|
|
|
|
.rate-question { color: white; font-weight: 600; margin-right: 0.25rem; }
|
|
|
|
.btn-rate {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
padding: 0.55rem 1rem;
|
|
border-radius: 8px;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
|
|
&:focus-visible { outline: 2px solid #6c63ff; outline-offset: 2px; }
|
|
|
|
&--known {
|
|
background: rgba(34, 197, 94, 0.14);
|
|
color: #bbf7d0;
|
|
border: 1px solid rgba(34, 197, 94, 0.4);
|
|
&:hover { background: rgba(34, 197, 94, 0.24); }
|
|
}
|
|
|
|
&--review {
|
|
background: rgba(251, 191, 36, 0.12);
|
|
color: #fde68a;
|
|
border: 1px solid rgba(251, 191, 36, 0.4);
|
|
&:hover { background: rgba(251, 191, 36, 0.22); }
|
|
}
|
|
}
|
|
|
|
// ─────────────── Bilan ───────────────
|
|
|
|
.summary {
|
|
background: #111827;
|
|
border: 1px solid #1f2937;
|
|
border-radius: 12px;
|
|
padding: 1.25rem;
|
|
}
|
|
|
|
.summary-score { color: white; font-size: 1.05rem; margin: 0 0 0.5rem; }
|
|
|
|
.summary-list {
|
|
margin: 0 0 0.9rem;
|
|
padding-left: 1.2rem;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.other-language .link-button { margin-left: 0.35rem; }
|