/* === BODY & GLOBAL === */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #DA7F30, #FFB347);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    overflow-y: auto;
    min-height: 100vh;
}

html, body {
    touch-action: auto;
    user-select: none;
    overflow: auto;
}

a {
    color: #ff6600;
    text-decoration: none;
}

/* === GAME CONTAINER === */
.game-container {
    background: #f5daae;
    padding: 20px;
    border-radius: 10px;
    border: 4px solid #783e27;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 650px;
    user-select: none;
}

/* === STAT BARS === */
.stat-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 30px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    border: 2px solid #783e27;
    overflow: visible;
}

.stat-bar .progress {
    height: 100%;
    border-radius: 7px;
    text-align: center;
    line-height: 30px;
    color: white;
}

.hp-bar { background-color: #f44336; }
.energie-bar { background-color: #FF2A00; }
.xp-bar { background-color: #4CAF50; }
.degats-bar { background-color: #FF5722; }
.defense-bar { background-color: #2196F3; }
.progress.critique-bar { background-color: #ff9800; }

.stat-bar span {
    font-size: 14px;
    font-weight: bold;      
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    line-height: 30px;
    white-space: nowrap;
    z-index: 1;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .stat-bar {
        height: 30px;
    }
    .stat-bar span {
        font-size: 16px;
    }
    button {
        padding: 8px;
        font-size: 14px;
    }
    .game-container {
        padding: 10px;
        font-size: 14px;
    }
    .modal-content {
        width: 80%;
    }
}

/* === CONTAINER === */
.container {
    background: #f3d3a4;
    padding: 20px;
    border-radius: 10px;
    border: 4px solid #783e27;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 650px;
    margin: 0 auto;
}
.container p {
    font-size: 16px;
    color: #5a3a0d;
    line-height: 1.5em;
    text-align: justify;
    max-width: 90%;
    margin: 0 auto 15px auto;
    text-shadow: 0 0 2px #ffe0b2;
}

/* === INPUTS & BUTTONS === */
input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
input:hover, input:focus {
    border-color: #ff9900;
    box-shadow: 0 0 5px #ff9900;
    outline: none;
}

button {
    background: #ff9900;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
    touch-action: manipulation;
}

button:hover {
    background: #cc7700;
}

/* === COMBAT CONTAINER === */
.combat-container {
    font-size: 18px;
    background: #f3d3a4;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid black;
    text-align: center;
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
}

/* === SHIBA IMAGE & ANIMATION === */
.shiba-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 200px;
    margin-bottom: 10px;
}

.shiba {
    width: 100px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

@keyframes shake {
    0%, 20%, 80%, 100% { transform: translateX(0); }
    30%, 50%, 70% { transform: translateX(-5px); }
    40%, 60% { transform: translateX(5px); }
}

.shiba-image-index {
    animation: shake 1.5s ease-in-out infinite;
    display: block;
    margin: 0 auto 0 auto;
}

/* === MESSAGES === */
.error-message {
    color: red !important;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
}

.success-message {
    color: green !important;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
}

/* === BUTTONS STYLES === */
.btn{
    display:inline-block;
    text-align:center;
    padding:8px 14px;
    border-radius:999px;
    border:2px solid #c07a1a;
    background:#f7a800;
    color:#fff;
    font-weight:900;
    font-size:14px;
    cursor:pointer;
    min-width: 160px;      /* largeur mini pour élargir les boutons */
    /* max-width: 300px;   // tu peux activer ça si tu veux limiter la largeur */
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px #cc7700;
}
.btn:hover {
    background-color: #cc7700;
}
.btn-row{
    display:flex;
    gap:10px;
    justify-content:flex-end;
    margin-top:12px;
}
.btn:disabled{
    opacity:.6;
    cursor:not-allowed;
}

/* === LOGIN BOX === */
.login-box {
    border: 5px double #783e27;
    background-color: #ffe0b2;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* === SEPARATOR LINE UNDER IMAGE === */
.separator-line {
    width: 85%;
    height: 3px;
    background: linear-gradient(to right, #783e27, #ff9900, #783e27);
    margin: 0 auto 15px auto;
    border-radius: 5px;
    box-shadow: 0 0 6px #ff9900;
}

/* === INTRO TEXT (explicatif sous image) === */
.intro-text {
    color: #6b4a1e;
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
    max-width: 600px;
    margin: 20px auto 30px auto;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.intro-text p {
    position: relative;
    padding-left: 25px;
    margin-bottom: 1.2em;
}

.intro-text .marker {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ff9900;
    border-radius: 50%;
    box-shadow: 0 0 6px #ff9900aa;
}

.intro-text strong {
    color: #cc7700;
    font-weight: 700;
}

.intro-text em {
    font-style: italic;
    color: #a05c00;
}
input[type="checkbox"] {
    width: auto !important;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}
/* === MENU GLOBAL === */
.menu-container { text-align:center; position:relative; font-weight:bold; }
.menu-button { background:#ff9800; color:#fff; font-size:18px; padding:12px 20px; border:none; border-radius:8px; cursor:pointer; margin:10px 0; }
.menu-button:hover { background:#e68900; }
.dropdown-menu {
  display:none; position:absolute; left:50%; transform:translateX(-50%);
  background:#fff8e7; border:2px solid #783e27; border-radius:12px; padding:10px;
  width:320px; max-width:90vw; z-index:1000; box-shadow:0 8px 24px rgba(0,0,0,.15);
}
.dropdown-menu a {
  display:block; padding:10px 12px; margin:6px 0; background:#f7e3c4; border:1px solid #d2a574;
  border-radius:8px; color:#783e27; text-decoration:none; font-weight:bold;
}
.dropdown-menu a:hover { background:#f0d4a8; }
@media (max-width:480px){ .dropdown-menu{ width:90%; } }


