/* ... (Le haut du fichier reste identique) ... */
.statusbar {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 20px;
  background: var(--panel-bg); border-bottom: 2px solid var(--panel-border); font-size: 16px;
  min-height: 60px; color: var(--text); flex-wrap: wrap; z-index: 2;
}
.statusbar-left { display: flex; align-items: center; }
.logo { font-weight: bold; color: var(--accent); display: flex; align-items: center; gap: 8px; font-size: 20px; white-space: nowrap;}
.inline-icon { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; }
.statusbar-center { text-align: center; }
.statusbar-right { text-align: right; }
.main { position: relative; display: grid; grid-template-columns: 1fr 350px 320px; grid-template-rows: 1fr; height: calc(100vh - 60px - 90px); gap: 8px; padding: 8px; z-index: 2; }

/* --- NOUVEAU : BOUTONS D'ACTION DE SURVIE --- */
.action-buttons-row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}
.btn-action {
  flex: 1;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  color: var(--text);
  padding: 8px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 11px;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}
.btn-action:hover { background: var(--accent); color: white; }
.btn-action:disabled { opacity: 0.5; cursor: not-allowed; background: #999; }

/* ... (Le reste des jauges et du chat reste identique) ... */
.journal-zone { background: var(--panel-bg); border-radius: var(--radius); border: 2px solid var(--panel-border); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.journal-header { background: #d9c9a3; padding: 10px 15px; border-bottom: 2px solid var(--panel-border); }
.journal-header h2 { font-size: 18px; color: var(--text); margin: 0; }
.journal-content { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.journal-entry { font-family: var(--font); font-size: 13px; color: var(--text); background: rgba(255,255,255,0.4); padding: 8px 12px; border-radius: 8px; border-left: 4px solid var(--accent); display: flex; gap: 10px; }
.journal-entry .time { color: #5c4331; font-size: 12px; min-width: 40px; }
.journal-entry.system { border-left-color: var(--accent-dark); background: rgba(46, 125, 50, 0.1); }

.character-zone { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.character-container { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(255,255,255,0.2); border-radius: var(--radius); border: 2px solid var(--panel-border); }
.character { max-height: 95%; max-width: 95%; object-fit: contain; animation: breathe 4s ease-in-out infinite; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6)); }
@keyframes breathe { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.02) translateY(-3px); } }

.vitals-panel { background: var(--panel-bg); border-radius: var(--radius); border: 2px solid var(--panel-border); padding: 12px 15px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.vital { display: flex; align-items: center; gap: 10px; }
.vital-icon { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.vital-label { font-family: var(--font); font-size: 13px; color: var(--text); width: 60px; }
.vital .bar { flex: 1; height: 10px; background: rgba(0,0,0,0.2); border-radius: 5px; overflow: hidden; }
.vital .bar .fill { height: 100%; background: var(--accent); border-radius: 5px; transition: width 0.3s; }

.chat-panel { background: var(--panel-bg); border-radius: var(--radius); border: 2px solid var(--panel-border); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.chat-panel.collapsed { transform: translateX(110%); }
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 8px; background: #d9c9a3; border-bottom: 1px solid var(--panel-border); }
.chat-tabs { display: flex; gap: 4px; }
.tab { padding: 4px 12px; background: transparent; color: var(--text); border-radius: 6px; font-size: 13px; opacity: 0.6; display: flex; align-items: center; gap: 4px; font-family: var(--font); }
.tab.active { background: var(--accent); color: var(--text-light); opacity: 1; }
.chat-collapse, .chat-reopen { background: var(--accent); color: white; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.chat-collapse { padding: 4px 8px; font-size: 12px; }
.chat-reopen { position: absolute; right: 16px; top: 16px; display: none; z-index: 10; width: 60px; height: 60px; }
.chat-reopen img { width: 40px; height: 40px; }
.chat-panel.collapsed + .chat-reopen { display: flex; }
.chat-body { flex: 1; overflow-y: auto; padding: 8px; font-size: 13px; font-family: var(--font); }
.chat-tab-content { display: none; }
.chat-tab-content.active { display: block; }
.message { margin-bottom: 6px; line-height: 1.4; }
.message.system { opacity: 0.8; font-style: italic; color: #5c4331; }
.chat-input { display: flex; gap: 4px; padding: 8px; background: rgba(0,0,0,0.05); border-top: 1px solid var(--panel-border); }
.chat-input input { flex: 1; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--panel-border); background: white; color: var(--text); font-size: 13px; font-family: var(--font); }
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input button { background: var(--accent); color: white; border-radius: 6px; padding: 0 12px; display: flex; align-items: center; justify-content: center; }

.actionbar { display: flex; justify-content: space-around; height: 90px; background: var(--panel-bg); border-top: 2px solid var(--panel-border); padding: 4px; z-index: 2; }
.action-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: transparent; color: var(--text); gap: 2px; border-radius: 8px; transition: background 0.2s; }
.action-btn span { font-size: 12px; font-family: var(--font); }
.action-btn:hover { background: rgba(0,0,0,0.08); }
.action-icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 4px; }

/* --- NOUVEAU : TEXTES FLOTTANTS --- */
#floating-container {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9999; overflow: hidden;
}
.floating-text {
  position: absolute;
  font-family: 'Boogaloo', cursive;
  font-size: 30px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  animation: floatUp 1.5s ease-out forwards;
}
.floating-text.positive { color: #4caf50; }
.floating-text.negative { color: #e53935; }

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  20% { transform: translateY(-20px) scale(1.5); opacity: 1; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* ... (Le Responsive reste identique) ... */
@media (max-width: 900px) {
  .main { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: calc(100vh - 60px - 90px); }
  .journal-zone { display: none; }
  .character-zone { grid-row: 1; }
  .character-container { flex: 1; min-height: 250px; }
  .vitals-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .chat-panel { position: absolute; bottom: 0; left: 0; right: 0; height: 45%; border-radius: var(--radius) var(--radius) 0 0; }
  .chat-reopen { bottom: 100px; top: auto; right: 20px; }
}
@media (max-width: 600px) {
  .statusbar { flex-direction: column; padding: 8px; gap: 8px; height: auto; min-height: 80px; }
  .statusbar-left { width: 100%; justify-content: center; }
  .statusbar-center { width: 100%; font-size: 14px; background: rgba(0,0,0,0.05); padding: 6px; border-radius: 8px; }
  .statusbar-right { width: 100%; text-align: center; font-weight: bold; color: var(--accent); }
  .main { height: calc(100vh - 80px - 90px); }
}