/*================================================================
--- STYLES PAGE D'ACCUEIL - LYON CENTRAL (Refonte V2)
================================================================*/

/* --- RESET & BODY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    /* Assurez-vous que le chemin de l'image est correct */
    background: url('../images/ImageMenu/cartedelyon.png') center/cover no-repeat fixed;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Overlay sombre pour améliorer la lisibilité sur la carte */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Léger voile sombre */
    pointer-events: none;
    z-index: 0;
}

/* --- BARRE DU HAUT --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: transparent;
    border: none;
    z-index: 100;
    width: 100%;
}

.top-left, .top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- STYLES BOUTONS ICONES (Style HUD comme panneau événements) --- */
.icon-btn {
    width: 55px;
    height: 55px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.icon-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* --- INFO JOUEUR (Badge gauche avec PP) --- */
.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 20px 5px 5px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    height: 55px;
}

.player-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

#joueur-pseudo {
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* --- ARGENT (Badge coins) --- */
.coins-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 20px 5px 5px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    height: 55px;
}

.coins-container .coin-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coins-container .coin-icon img {
    width: 32px;
    height: 32px;
}

#joueur-or {
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* --- LOGO CENTRE --- */
.center-logo {
    position: absolute;
    top: 12%; /* Remonté un peu */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 50;
    /* Suppression de l'animation logoFloat */
}

.center-logo img {
    width: 300px;
    max-width: 80vw;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    /* Image fixe, pas d'animation */
}

/* --- MENU CENTRAL (Boutons Blancs) --- */
.menu {
    position: absolute;
    top: 55%; /* Centré verticalement mais légèrement vers le bas */
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 50;
    width: 280px;
}

.menu button {
    width: 100%;
    padding: 12px 0;
    font-size: 25px;
    font-weight: 600;
    color: #000000; /* Texte noir */
    background: #ffffff; /* Fond blanc */
    border: 1px solid #000000;
    border-radius: 8px; /* Coins arrondis modérés */
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2); /* Effet de relief en bas */
    transition: all 0.1s ease;
}

.menu button:hover {
    background: #f0f0f0;
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.menu button:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* --- BARRE DE NIVEAU (Style HUD sombre) --- */
.level-bar-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 550px;
    max-width: 90vw;
    padding: 20px 35px;
    color: #ffffff;
    font-weight: 600;
    z-index: 50;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    font-size: 18px;
    text-transform: uppercase;
}

#joueur-xp {
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
}

.level-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.level-fill {
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, #21f3ec 0%, #64f675 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
    transition: width 0.5s ease;
}

/* --- FOOTER --- */
footer {
    display: none; 
}

/* ==========================
   Modal (overlay) styles
   Moved from inline <style> in accueil.html
   ========================== */
.overlay{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.45);
    backdrop-filter:blur(6px);
    z-index:1000;
}
.overlay.hidden{display:none}
.modal{
    background:#000;
    color:#fff;
    padding:22px;
    border-radius:12px;
    width:88%;
    max-width:720px;
    box-shadow:0 10px 30px rgba(0,0,0,0.6);
    position:relative;
    border:2px solid rgba(255,255,255,0.06);
}
.modal h2{margin:0 0 12px 0;text-align:center}
.modal-close{
    position:absolute;
    right:14px;
    top:10px;
    background:transparent;
    border:2px solid rgba(255,255,255,0.12);
    color:#fff;
    border-radius:6px;
    padding:6px 8px;
    cursor:pointer;
}
body.modal-open{overflow:hidden}
#modal-content{max-height:60vh;overflow:auto;padding-top:6px}
.menu button{cursor:pointer}

/* Inventory / modal content styles */
#modal-title{
    margin: 6px 0 8px 0;
    text-align: center;
    font-size: 22px;
    letter-spacing: 0.5px;
}
#modal-title::after{
    content: '';
    display: block;
    height: 4px;
    width: 86%;
    max-width: 560px;
    margin: 12px auto 0;
    background: #ffffff;
    border-radius: 4px;
    opacity: 0.95;
}

.inv-section{
    margin-top: 18px;
}
.inv-section-title{
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    margin: 6px 0 8px 0;
}
.inv-section-title::after{
    content: '';
    display:block;
    height:2px;
    width:100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.25));
    margin-top:8px;
    border-radius:2px;
}

.inv-row{
    display:flex;
    gap:14px;
    padding:12px 6px;
    align-items:center;
    flex-wrap:wrap;
}

.inv-item{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    color:#000;
    min-width:56px;
    min-height:56px;
    padding:8px;
    border-radius:12px;
    box-shadow:0 6px 12px rgba(0,0,0,0.35);
    border:4px solid transparent; /* space for selected outline */
    cursor:pointer;
    user-select:none;
}
.inv-item img{max-width:44px;max-height:44px;border-radius:8px;display:block}
.inv-item.selected{border-color:#ff2b2b} /* red outline when selected */

.inv-item.banner{
    min-width:140px;
    min-height:56px;
    border-radius:14px;
    font-weight:700;
    padding:10px 18px;
}
.inv-item.banner.golden{background:#b59f2f;color:#fff}

/* Player badge banner variants */
.player-info.banner-golden {
    background: linear-gradient(90deg, rgba(181,159,47,1), rgba(166,135,20,1));
    border-color: rgba(255, 215, 0, 0.7);
}
.player-info.banner-default {
    background: rgba(0,0,0,0.7);
}
.player-avatar img{width:40px;height:40px;border-radius:8px;display:block}

/* make player avatar clickable */ 
.player-avatar{cursor:pointer}

/* Footer action buttons inside modal */
.inv-action-btn{
    padding:10px 18px;
    border-radius:8px;
    border:0;
    font-weight:700;
    cursor:pointer;
}
.inv-action-btn.cancel{background:#ddd;color:#111}
.inv-action-btn.validate{background:#2ecc71;color:#fff}


/* Modal footer (Annuler / Valider) */
.modal-footer{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:14px;
}

/* Profil et Leaderboard: contenu interne */
.profile-content, .leaderboard-content{
    color:#fff;
    margin-top:12px;
    text-align:center;
}
.profile-content .label{font-weight:700;margin-bottom:6px}
.leaderboard-content ol{list-style:decimal;margin:8px 0 0 24px;text-align:left}



