/* L'icône du sac (Sacoche en cuir) */
#inventory-icon {
    position: fixed; bottom: 200px; right: 30px;
    width: 70px; height: 50px;
    background: #3d2b1f;
    border: 3px solid #2a1d15;
    border-radius: 4px;
    cursor: pointer; z-index: 1000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6), inset 0 2px 5px rgba(255,255,255,0.1);
    display: flex; justify-content: center; align-items: center;
    transition: all 0.3s;
}
#inventory-icon::after { /* Poignée de la sacoche */
    content: ''; position: absolute; top: -10px; width: 30px; height: 10px;
    border: 3px solid #2a1d15; border-bottom: none; border-radius: 5px 5px 0 0;
}
#inventory-icon.new-item {
    animation: pulse-gold 2s infinite;
}
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(251, 192, 45, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(251, 192, 45, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 192, 45, 0); }
}

/* Le voile sombre derrière */
#inventory-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.7); z-index: 1001;
    backdrop-filter: blur(3px);
}

/* Le Panneau (Dossier de Police) */
#inventory-panel {
    display: none; 
    position: fixed; 
    top: 50%; 
    right: 5%; /* Aligné à 5% du bord droit */
    left: auto; /* Annule le centrage précédent */
    transform: translateY(-50%); /* On ne centre plus que verticalement */
    width: 400px; 
    max-height: 80vh;
    background: #e4d5b7; 
    background-image: url('https://www.transparenttextures.com/patterns/felt.png'); 
    border: 1px solid #c4b597;
    box-shadow: -10px 10px 60px rgba(0,0,0,0.9); /* Ombre ajustée vers la gauche */
    z-index: 1002; 
    padding: 40px;
    font-family: 'Special Elite', serif; 
    color: #352b1f;
    overflow-y: auto;
}

/* Effet de dossier */
#inventory-panel::before {
    content: "CONFIDENTIAL - LAPD";
    position: absolute; top: 15px; left: 2#inventory-panel0px;
    font-size: 12px; font-weight: bold; color: rgba(139,0,0,0.5);
    border: 2px solid rgba(139,0,0,0.5); padding: 2px 5px;
    transform: rotate(-5deg);
}

.evidence-item {
    position: relative;
    background: rgba(255,255,255,0.3);
    margin-bottom: 20px; padding: 15px;
    border-left: 5px solid #8b0000;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.paper-clip {
    position: absolute; top: -10px; right: 10px;
    width: 15px; height: 35px;
    border: 2px solid #999; border-radius: 10px;
    background: transparent;
}

.evidence-item strong { display: block; font-size: 1.3rem; margin-bottom: 5px; text-transform: uppercase; }
.evidence-item p { margin: 0; font-size: 0.95rem; line-height: 1.3; }

.close-folder {
    display: block; width: 100%; margin-top: 20px;
    padding: 10px; background: #352b1f; color: #e4d5b7;
    border: none; cursor: pointer; font-family: 'Special Elite';
}

.main-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.1);
    padding: 5px;
}

.main-tab-btn {
    background: none;
    border: none;
    font-family: 'Special Elite';
    cursor: pointer;
    padding: 10px;
    border-bottom: 3px solid transparent;
}

.main-tab-btn.active {
    border-bottom: 3px solid var(--blood);
    color: var(--blood);
    font-weight: bold;
}

#inventory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #352b1f;
}

.tab-btn {
    background: #c4b597;
    border: 1px solid #352b1f;
    border-bottom: none;
    padding: 5px 10px;
    font-family: 'Special Elite', serif;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 5px 5px 0 0;
    transition: background 0.2s;
}

.tab-btn.active {
    background: #fffdf0; /* Même couleur que le papier du dossier */
    font-weight: bold;
    color: #8b0000;
}

.evidence-room {
    margin-top: 8px; 
    font-size: 0.7rem; 
    color: #8b0000; 
    text-transform: uppercase; 
    font-weight: bold;
}

@media (max-width: 500px) {
    #inventory-panel {
        width: 90%;
        right: 5%;
        padding: 20px;
    }
}
