/* Styles de base */
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-ExtraBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MarteauPoto';
    src: url('fonts/Marteau-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Gilroy1';
    src: url('Gilroy.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


* {
    font-family: 'Gilroy1', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: transparent;
}

.hud-container {
    position: fixed;
    top: 20px;
    right: 0;
    width: 250px; /* Ajuste la largeur pour correspondre aux éléments */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-radius: 15px;
    padding: 15px;
    color: white;
}

/* Styles pour l'en-tête */
.hud-header {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(50, 50, 50, 0.281), rgba(53, 36, 68, 0.8), #530792);
    padding: 8px 15px; /* Augmente le padding vertical */
    border-radius: 10px 100px 100px 10px; /* Définit un arrondi de 30px uniquement sur les coins de droite */
    margin-bottom: 15px;
    width: 100%;
    position: relative;
}


.icon-img {
    width: 25px; /* Ajustez selon la taille désirée */
    height: 25px;
}


.hud-logo {
    width: 110px;
    height: 110px;
    position: absolute; /* Positionne le logo indépendamment */
    top: 50%; /* Centre le logo verticalement */
    right: -23px; /* Ajuste la position pour le coller à droite */
    transform: translateY(-50%); /* Centre parfaitement le logo verticalement */
}


.hud-title {
    display: flex;
    flex-direction: column; /* Aligne le texte en colonne */
    align-items: center; /* Centre horizontalement */
    justify-content: center; /* Centre verticalement */
    text-align: center; /* Assure que le texte est centré */
}

.hud-title h1 {
    font-family: 'MarteauPoto';
    font-size: 25px;
    color: #b8a1ff;
    margin: 0;
}

.hud-title p {
    font-family: 'Gilroy';
    font-size: 11px;
    color: #d4c1ff;
    margin: 0;
}


/* Styles pour les éléments de la HUD */
.hud-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, transparent, rgba(50, 50, 50, 0.6), rgba(82, 66, 97, 0.8), #530792);
    padding: 8px 12px;
    border-radius: 30px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    width: 140px;
}

.hud-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}

.hud-text {
    font-size: 16px;
    font-weight: bold;
    color: white;
    flex-grow: 1;
    text-align: right;
    margin-right: 25px;
}

/* Positionnement de l'icône collée au bord droit */
.icon-circle {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #5b2c82, #530792);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a1ff;
    font-size: 18px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    position: absolute;
    right: -5px;
}
