* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
}

#app {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 640px;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

/* PAGES */
.page {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 100px;
    background: url('img-fond.jpg') center/cover no-repeat;
}

.page::-webkit-scrollbar { display: none; }
.page { -ms-overflow-style: none; scrollbar-width: none; }
.page.active { display: block; }

/* BOTTOM NAV AVEC IMAGE DE FOND */
.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: url('barre_carbonne.jpg') center/cover no-repeat;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
}

.bottom-nav button {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 0;
}

.bottom-nav img { width: 18px; height: 18px; }
.bottom-nav span { font-size: 10px; }

/* PAGE PLUS */
.plus-list {
    padding: 90px 10px 120px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.plus-list button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(51,51,51,0.8);
    border: none;
    border-radius: 8px;
    color: white;
}
.plus-list img { width: 20px; height: 20px; }

/* ARMEE TOP BAR */
.armee-top-bar {
    width: 100%;
    height: 100px;
    background: url('') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 10px;
}

/* ARMEE BUTTONS */
#armee .armee-top-buttons {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    width: 95%;
    align-items: center;
}
#armee .armee-top-buttons button {
    flex: 1;
    padding: 8px 0;
    background: rgba(51,51,51,0.8);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 10px;
}

/* ARMEE SOUS-PAGES */
.armee-subpage {
    display: none;
    width: 100%;
    height: calc(100% - 100px);
    padding: 10px;
    background: url('https://via.placeholder.com/360x640') center/cover no-repeat;
    overflow-y: auto;
}

.armee-subpage::-webkit-scrollbar { display: none; }
.armee-subpage { -ms-overflow-style: none; scrollbar-width: none; }

/* SOLDAT */
.soldat-list { display: flex; flex-direction: column; gap: 10px; }

.soldat-container {
    display: flex;
    gap: 10px;
    padding: 10px;
    align-items: flex-start;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
}

.soldat-square { width: 80px; height: 80px; object-fit: cover; border: 1px solid #fff; border-radius: 5px; }

.soldat-rect {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(51,51,51,0.5);
    padding: 5px;
    border-radius: 5px;
}

.soldat-rect .stats { display: flex; justify-content: space-between; font-size: 12px; color: white; }
.unit-name { font-size: 12px; color: white; text-align: center; }
.unit-number { width: 50px; padding: 2px 5px; border-radius: 4px; border: 1px solid #ccc; text-align: center; }
.unit-range { width: 100%; }
.actions { display: flex; justify-content: space-between; gap: 5px; }
.actions button {
    flex: 1; padding: 5px; background: #555; color: white; border: none; border-radius: 5px; font-size: 12px; text-align: center;
}