Redesign adversité section: 3 colored cards layout

Replace vertical list with horizontal card layout matching header style:
- BLEUE (blue), ROUGE (red), NOIRE (dark) cards with top-colored borders
- Gem image 52px with drop-shadow + hover scale
- Large numeric counter (Signika font)
- Colored -/+ buttons (red minus, green plus)
- Modifier fields compact row below cards
- Section title with amber letterhead style

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-04-03 08:04:45 +02:00
parent 28cab15b37
commit 0ce42d0fe3
3 changed files with 363 additions and 23 deletions

View File

@@ -790,6 +790,179 @@
}
}
}
/* ==================== Adversité Cards ==================== */
.adversite-section {
padding: 6px 8px 8px;
.adversite-section-title {
font-family: "CentaurMT", "Palatino Linotype", serif;
font-size: 0.85rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1.5px;
color: #c8a060;
text-align: center;
margin: 0 0 8px 0;
padding-bottom: 4px;
border-bottom: 1px solid rgba(180, 130, 40, 0.35);
text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.adversite-cards {
display: flex;
flex-direction: row;
gap: 8px;
.adversite-card {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
padding: 6px 4px 8px;
border-radius: 5px;
border: 1px solid rgba(100,80,40,0.4);
border-top: 3px solid rgba(100,80,40,0.6);
background: rgba(8,4,0,0.55);
transition: box-shadow 0.2s;
&:hover {
box-shadow: 0 0 10px rgba(200,160,60,0.2);
}
// Couleur par type
&.adversite-bleue {
border-top-color: #2255bb;
background: rgba(4, 8, 30, 0.65);
.adversite-card-title { color: #88aaff; }
}
&.adversite-rouge {
border-top-color: #aa1818;
background: rgba(30, 4, 4, 0.65);
.adversite-card-title { color: #ff8888; }
}
&.adversite-noire {
border-top-color: #555555;
background: rgba(12, 12, 12, 0.75);
.adversite-card-title { color: #aaaaaa; }
}
.adversite-card-title {
font-size: 0.62rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 1px;
text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}
.adversite-gem {
width: 52px;
height: 52px;
object-fit: contain;
filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
transition: transform 0.15s, filter 0.15s;
&:hover {
transform: scale(1.06);
filter: drop-shadow(0 3px 10px rgba(180,140,60,0.5));
}
}
.adversite-value {
font-family: "Signika", "Arial Narrow", sans-serif;
font-variant-numeric: lining-nums tabular-nums;
font-size: 1.6rem;
font-weight: 900;
color: #f5e0c0;
text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
line-height: 1;
min-height: 1.8rem;
display: flex;
align-items: center;
justify-content: center;
}
.adversite-controls {
display: flex;
gap: 6px;
align-items: center;
.adv-btn {
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
font-weight: 900;
border-radius: 4px;
border: 1px solid rgba(160,120,40,0.6);
background: linear-gradient(to bottom, rgba(60,35,8,0.9), rgba(30,15,3,0.9));
color: #d4aa60;
cursor: pointer;
transition: all 0.12s;
text-decoration: none;
line-height: 1;
user-select: none;
&:hover {
background: linear-gradient(to bottom, rgba(120,60,10,0.95), rgba(80,35,5,0.95));
border-color: rgba(220,170,50,0.8);
color: #ffe090;
transform: scale(1.1);
}
&:active {
transform: scale(0.92);
}
&.adv-minus { color: #ff9999; border-color: rgba(180,40,40,0.5); }
&.adv-plus { color: #99ffaa; border-color: rgba(40,160,60,0.5); }
}
}
}
}
.adversite-modifiers {
display: flex;
flex-direction: row;
gap: 8px;
margin-top: 8px;
padding-top: 6px;
border-top: 1px solid rgba(120,80,20,0.3);
.adversite-modifier-row {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
label {
font-size: 0.58rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #9a7a50;
white-space: nowrap;
cursor: default;
}
input {
width: 40px;
height: 20px;
text-align: center;
font-size: 0.8rem;
font-weight: 600;
padding: 0 2px;
background: rgba(30,15,3,0.85);
border: 1px solid rgba(120,75,20,0.5);
border-radius: 2px;
color: #f0dfc0;
}
}
}
}
}
/* ==================== Creature Sheet Specific Styles ==================== */