/* Style simple : à remplacer par ton CSS des allumettes si tu préfères */
body {
    font-family: Arial, sans-serif;
    background-color: hsl(0, 10%, 96%);
    margin: 0;
    padding: 0 20px 40px 20px;
    transition: background-color 1s;
}
header { text-align: center; }
#ressources span { margin: 0 15px; }

.batiment {
    background: white;
    border: 1px solid #999;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 8px auto;
    max-width: 700px;
}
.batiment h3 { margin: 0 0 6px 0; }
.batiment small { font-weight: normal; color: #555; margin-left: 10px; }

button { padding: 6px 12px; margin: 2px; cursor: pointer; }
button:disabled { opacity: 0.4; cursor: not-allowed; }
#btn-sacrifier { display: block; margin: 10px auto; padding: 14px 30px; font-size: 18px; }

/* Cubes qui représentent les bâtiments */
.cubes { margin-top: 6px; min-height: 20px; }
.cube { display: inline-block; width: 16px; height: 16px; margin: 1px; border: 1px solid #333; }
.cube-maison { background: #cd7f32; }   /* bronze */
.cube-immeuble { background: #c0c0c0; width: 22px; height: 22px; }  /* argent */
.cube-manoir { background: #ffd700; width: 28px; height: 28px; }    /* or */
.cube-ville { background: #b9f2ff; width: 34px; height: 34px; }     /* diamant */

/* Jauge d'immortalité */
#immortalite { text-align: center; margin-top: 20px; }
#jauge { width: 80%; max-width: 700px; height: 24px; margin: 0 auto; border: 2px solid #600; background: white; }
#jauge-remplie { height: 100%; width: 10%; background: #b00; transition: width 0.5s; }
#bouton-final { font-size: 28px; padding: 20px 40px; background: #b00; color: white; border: none; border-radius: 8px; }

#message { text-align: center; color: #b00; min-height: 20px; }
main { text-align: center; }

/* Écran de fin */
#fin {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); color: white;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
