/* A ENLEVER PAR LA SUITE */

.header {
    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ----- */



.nav button {
    background-color: #ffc7c7;
    border: none;
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
}

.nav button:hover {
    background-color: #ff8585;
}

/* Dein restliches CSS */

/* .column:nth-child(2) {  *//* l'intérieur des deux colonnes roses sur les côtés */
/*     flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
} */

#donuts {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribue l'espace entre les éléments */
/*  justify-content: center; */    
    align-items: center;
    border-radius: 8px;
    justify-content: space-between; /* Distribue l'espace entre les éléments */
    height: 100%; /* Prend toute la hauteur disponible */
    padding: 20px 0; /* Espace en haut et en bas */
}

/* Le bon gros Donut */

.donut-img {
    max-width: 100%; /* Au lieu de max-width: 400px; */
    max-height: 100%; /* Limite la hauteur à 60% de la hauteur de la fenêtre */
    width: auto;     /* Ajout pour assurer la proportionnalité */
    height: auto;   /* Ajout pour maintenir le ratio */
    transition: transform 0.2s, opacity 0.3s;
    cursor: pointer;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none; /*  Empêche le drag sur Chrome et Safari */
}

.donut-unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}


.resource-unavailable {
    opacity: 0.5;
    transition: opacity 0.3s;
}


.donut-img:hover {
    transform: scale(1.1);
}

.donut-img:active {
    transform: scale(0.9);
}

.donut-container {
    flex-grow: 2;
    flex-shrink: 2;
    flex-basis: 0;
    max-height: 50vh; /* Le donut n'occupera jamais plus de 50% de la hauteur de l'écran */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    animation: donutBounce 2s infinite ease-in-out;
}
donut-text {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
/*     justify-content: center;
*/    align-items: center;
    /* ici tu peux gérer l'espace comme tu veux */
    margin-bottom: 20px; /* par exemple, pour séparer du reste */
}


html {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

:root {
    --theme-color: #FFE0FA;
}

body { /* l'arrière plan */
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--theme-color);
    color: #000000;
    height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* est-ce que ça servirait pas legit à rien ?
.menu {
    width: 100%;
    background-color: #eee;
    display: flex;
    justify-content: flex-start;
    padding: 10px 20px;
    box-sizing: border-box;
}

.menu button {
    background-color: transparent;
    border: none;
    padding: 5px 10px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 16px;
}

.menu button:hover {
    background-color: #ddd;
}
*/



/* le conteneur de toute l'interface */
.container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    height: 100vh; /* Utilisation de vh pour une hauteur fixe */
    box-sizing: border-box;
    overflow-y: auto; /* Ajout du scroll vertical */
    overflow-x: hidden; /* Pas de scroll horizontal */
    padding: 10px; /* Ajout d'un padding pour éviter les effets de bord */
    position: relative;
}

/* la colonne du milieu avec le donut */
.column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: white;
    margin: 10px; /* margin between the columns and the body */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px; /* padding between the columns and the body */
    flex: 1;
    overflow-y: auto;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
/* Variables pour les espacements et dimensions - facilement modifiables */
:root {
    /* Variables pour la colonne gauche */
    --left-column-width: 30%;
    --left-column-padding-top: 20px;
    --left-column-padding-right: 15px;
    --left-column-padding-bottom: 30px;
    --left-column-padding-left: 15px;
    --left-column-margin: 10px;
    --left-column-section-spacing: 15px;
    --left-column-min-width: 300px;
    
    /* Variables pour le contenu intérieur */
/*     --column-content-padding-top: 20px;
 */    --column-content-padding-right: 15px;
/*     --column-content-padding-bottom: 20px;
 */    --column-content-padding-left: 15px;
    --column-content-width: 90%;
    
    /* Variables pour les sections */
/*     --section-margin-bottom: 25px;
 *//*     --section-spacing: 10px;
 */    --section-title-margin: 10px 0 5px 0;
    --section-h2-margin: 15px 0 10px 0;
    --section-button-margin: 6px 0;
    --section-hr-margin: 10px 0 20px 0;
    --section-h2-margin-left: 10px;
    --section-button-margin-left: 10px;
}

/* Option 3: Utiliser un pourcentage de la largeur totale */
.column:nth-child(1) {
    flex: none;
    width: var(--left-column-width);
    min-width: var(--left-column-min-width);
    background-color: var(--theme-primary);
    border: 3px solid var(--theme-text);
    box-shadow: 4px 4px 0px var(--theme-text);
    display: flex;          
    flex-direction: column; 
    align-items: center;    
    padding: var(--left-column-padding-top) var(--left-column-padding-right) 
             var(--left-column-padding-bottom) var(--left-column-padding-left);
    margin: var(--left-column-margin);
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: left center;
    overflow-y: auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

  .column:nth-child(1).collapsed {
    width: 0;
    opacity: 0;
    transform: translateX(-100%);
    padding: 0;
    border: none;
  }

  .column:nth-child(2) {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex: 2;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    padding: 20px;
    padding-bottom: 40px; /* <-- Ajout ici */
    overflow-y: auto; /* ou 'auto' si tu veux scroller en dernier recours */
    overflow-x: hidden;
}



  /* Ajustement pour la div contenant le titre et le texte */
.donut-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin-bottom: 20px; /* Espace sous le bloc de texte */
    color: #000000;
  }
  
  /* Suppression de la marge inférieure de h1 */
  .donut-text h1 {
    margin-bottom: 0;
    line-height: 1.1; /* Contrôle l'espacement vertical */
    color: #000000;
  }
  
  /* Style pour le texte "par seconde" */
  .donut-text p {
    margin-top: 5px; /* Espace minimal entre h1 et ce texte */
    font-size: 26px;
    font-weight: medium;
    color: #000000;
  }

  .resource-bar p {
    font-size: 26px;
    font-weight: regular;
    color: #000000;
  }

  .resource-bar span {
    font-size: 26px;
    font-weight: regular;
    color: #000000;
  }


  h1 {
/*  <weight>: Use a value from 400 to 700
    <uniquifier>: Use a unique and descriptive class name */
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 60px;
    text-align: center;
    margin-top: 0;
    color: #000000;
  }


h2 {
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 40px;
    margin: 0;
    text-size-adjust: 100%;
    text-align: left;
    color: #000000;
}

h3 {
    font-size: 16px;
    margin: 0;
    text-size-adjust: 100%;
    color: #000000;
}

p {
    /*  <weight>: Use a value from 400 to 700
    <uniquifier>: Use a unique and descriptive class name */
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 26px;
    color: #000000;
}


/*
.wheat-display {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
*/

.inventory {
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

/* Barre des ressources */

/* Styles pour la barre de ressources sous le donut */
.resource-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border: 3px solid #000000;
    border-radius: 15px;
    width: 80%; /* Au lieu de calc(100% - 200px); */
    /*top: auto;  /* Remplacer top: 80% */
    bottom: 5%; /* Positionnement par rapport au bas */
    /* margin: 0%; */
    position: absolute;
    box-shadow: 4px 4px 0px #000000;
    box-sizing: border-box;
    /* margin-top: 20px; /* Ajouter un peu d'espace au-dessus */
    position: relative; /* Changer de absolute à relative */
    bottom: auto; /* Supprimer le positionnement absolu */
/*     margin-bottom: 10%; */
}


/* Compartiments individuels dans la barre */
.resource-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.1s ease;
    flex: 1;
    text-align: center;
    user-select: none;
    color: #000000;
}

.resource-item:hover {
    transform: scale(1.05);
}

.resource-item:active {
    transform: scale(0.95);
}

/* Séparateurs entre les compartiments */
.resource-item:not(:last-child) {
    border-right: 1px solid #000000;
}

/* Styles pour les icônes dans la barre de ressources */
.resource-icon {
    height: 20px;
    width: 20px;
}

/* Styles pour les valeurs dans la barre de ressources */
.resource-value {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
}

/* Placement spécifique dans la vue donut */
#donuts .resource-bar {
    order: 2; /* Place la barre en dessous du donut */
    margin-top: 20px;
}

.plus-one {
    position: absolute;
    color: #ffe0fa;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    z-index: 1000;
    animation: floatUp 1.5s ease-out forwards;
    text-shadow: 0 0 3px #fff;   
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

@keyframes donutBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* monte de 10px */
    }
}

/* Media queries pour les écrans plus petits */
@media (max-height: 700px) {
    .donut-img {
        max-width: 35%;
        max-height: 50vh;
    }
    
    .donut-container {
        padding: 5px 0;
    }
    
    .resource-bar {
        padding: 8px 12px;
        width: 85%; /* Légèrement plus petit */
    }
    
    .resource-item {
        padding: 4px 8px;
        gap: 6px;
    }
    
    .resource-bar p, .resource-bar span {
        font-size: 22px; /* Texte légèrement plus petit */
    }
    
    .resource-icon {
        width: 30px; /* Icônes plus petites */
        height: 30px;
    }
}

/* Pour les très petits écrans */
@media (max-height: 500px) {
    .donut-img {
        max-width: 30%;
        max-height: 40vh;
    }
    
    .donut-text h1 {
        font-size: 40px;
    }
    
    .donut-text p {
        font-size: 20px;
    }
    
    .resource-bar {
        padding: 5px 8px;
        width: 90%; /* Plus large pour utiliser l'espace horizontal */
        border-width: 2px; /* Bordure plus fine */
    }
    
    .resource-item {
        padding: 3px 5px;
        gap: 4px;
    }
    
    .resource-bar p, .resource-bar span {
        font-size: 18px; /* Texte encore plus petit */
    }
    
    .resource-icon {
        width: 24px; /* Icônes encore plus petites */
        height: 24px;
    }
}

@media (max-width: 500px) {
    .resource-bar {
        width: 95%; /* Presque toute la largeur disponible */
        padding: 5px;
    }
    
    .resource-item {
        padding: 3px;
    }
    
    .resource-bar p, .resource-bar span {
        font-size: 16px; /* Texte très petit */
    }
}

/* Bouton joli */
/* Conteneur principal du bouton des améliorations */

  .game-button {
    display: flex;
    align-items: center;
    width: 90%;
    background: white;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    position: relative;    
    overflow: visible; /* Changed from hidden to visible pour permettre au tooltip de déborder */;
    transition: all 0.2s ease;
    margin: 5px auto; /* Pour centrer horizontalement si c'est un élément block */
    color: #000000;
}

/* Apparence rose si l'upgrade est achetable */
.upgrade-available {
    background: var(--theme-color) !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

/* Apparence blanche si non achetable */
.upgrade-unavailable {
    background: #fff !important;
    cursor: not-allowed;
    color: #000000 !important;
    border-color: #000000 !important;
}


/* Barre de progression livraison */
.delivery-progress-container {
    width: 100%;
    height: 80px; /* Hauteur fixe du conteneur */
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.delivery-progress-container:hover {
    transform: scale(1.05);
}

.delivery-progress-container:active {
    transform: scale(0.95);
}


.delivery-progress-wrapper {
    width: 90%;
    max-width: 500px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.delivery-progress-label {
    font-family: "League Spartan", Arial, sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: 1px;
    height: 24px; /* Hauteur fixe pour le texte */
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.delivery-progress-bar-bg {
    width: 100%;
    height: 22px;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;

    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
}

.delivery-progress-bar-fill {
    height: 100%;
    width: 100%;
    background: var(--theme-color);
    border-radius: 12px 0 0 12px;
    transition: width 0.3s cubic-bezier(.4,2,.6,1);
}

/* Styles pour les skins de classement */
.skin-golden {
    --theme-color: #FFD700;
}

.skin-silver {
    --theme-color: #C0C0C0;
}

.skin-bronze {
    --theme-color: #CD7F32;
}

@media (max-width: 600px) {
    .delivery-progress-wrapper {
        max-width: 95vw;
    }
    .delivery-progress-bar-bg {
        height: 16px;
    }
    .delivery-progress-label {
        font-size: 16px;
    }
}


/* Animation de survol */
.game-button:hover {
    background: #FBEDF9;
    transform: translateY(-2px);
}

/* Animation de clic */
.game-button:active {
    transform: translateY(1px);
}

/* Conteneur de l'icône */
.icon-container {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

/* Style de l'icône */
.icon {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 50px;
    height: 50px;
}

.font-icon {
    font-family: "Noto Emoji", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 50px;
    font-style: normal;
    color: rgb(0, 0, 0);
    margin: 0;
    padding: 0;
    user-select: none
}




/* Contenu de l'information centrale */
.info-container {
    flex-grow: 1;
}

/* Style du titre principal */
.title {
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 30px;
    font-style: normal;
    color: rgb(0, 0, 0);
    margin: 0;
    padding: 0;
    user-select: none
}

/* Style du coût (sous le titre) */
.cost {
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 20px;
    font-style: normal;
    color: rgb(0, 0, 0);
    margin: 0;
    padding: 0;
    user-select: none
/*     margin-top: 4px;
 */}

.cost-icon {
    font-family: "Noto Emoji", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 20px;
    font-style: normal;
    color: rgb(0, 0, 0);
    margin: 0;
    padding: 0;
    user-select: none
}


/* Conteneur du nombre à droite */
.quantity-container {
    position: relative; /* important pour positionner le ::before */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    color: rgb(0, 0, 0);
    user-select: none;

    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 60px;
    font-style: normal;
    color: rgb(0, 0, 0);
    user-select: none;
    margin-bottom: -6px;
}

/* Fond translucide qui couvre tout le bouton */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

/* Style du tooltip qui apparaît au survol */
.tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 115%; /* Positionné en dessous du bouton */
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    background-color: white;
    color: rgb(0, 0, 0);
    text-align: left;
    padding: 14px;
    border-radius: 8px;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    

    width: 280px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;

    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 24px;
    font-style: normal;
    color: rgb(0, 0, 0);
}

/* Petit triangle à gauche du tooltip */
.tooltip::after {
    content: "";
    position: absolute;
    top: 102%;
    left: 90%;
    transform: translateX(-50%) rotate(180deg);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
}

/* Affiche le tooltip au survol du bouton */
.game-button:hover .tooltip,
.delivery-progress-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Titres dans le tooltip */
.tooltip-title {
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 30px;
    font-style: normal;
    color: rgb(0, 0, 0);
    margin-bottom: 6px;
}

/* Description dans le tooltip */
.tooltip-desc {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Stats dans le tooltip */
.tooltip-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 6px;
    margin-top: 6px;
}

/* Style du tooltip qui apparaît au survol */
.tooltip2 {
    visibility: hidden;
    position: absolute;
    bottom: 115%; /* Positionné en dessous du bouton */
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: rgb(0, 0, 0);
    text-align: left;
    padding: 14px;
    border-radius: 8px;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    

    width: 280px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;

    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 24px;
    font-style: normal;
    color: rgb(0, 0, 0);
}

/* Ligne de stat individuelle */
.tooltip-stat {
    display: flex;
    justify-content: space-between;
}

/* Valeur de stat (partie droite) */
.stat-value {
    color: #000000;
    font-weight: bold;
}

.donut-text, .resource-bar {
    flex-shrink: 0;
}


.leftSection {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changé pour mieux contrôler l'espacement */
    width: 100%;
    text-align: left;
    min-height: 100%;
    gap: var(--section-spacing); /* Espacement vertical entre les éléments */
    margin-bottom: var(--section-margin-bottom);
}

/* Styles pour les titres et éléments de la section gauche */
.leftSection h1 {
    margin: var(--section-title-margin);
}

.leftSection h2 {
    margin: var(--section-h2-margin);
}

.leftSection hr {
    margin: var(--section-hr-margin);
}

.leftSection .game-button {
    margin: var(--section-button-margin);
}

/* Styles pour les titres de la leftSection */
.leftSection h1 {
    margin: var(--section-title-margin);
    font-weight: 900;
    line-height: 1.1; /* Contrôle l'espacement vertical */
    color: #000000;
}

.leftSection h2 {
    text-align: left;
    margin: var(--section-h2-margin);
    margin-left: var(--section-h2-margin-left);
    color: #000000;
}

  
.leftSection .game-button {
    margin: var(--section-button-margin);
    margin-left: var(--section-button-margin-left);
    text-align: left;
    margin-right: auto;
    color: #000000;
}
  


/* Fix for HR element to make it display as a full horizontal line */
hr {
    width: calc(100% - 30px); /* Réduire la largeur pour éviter le dépassement */    
    border: none;
    height: 3px;
    background-color: rgb(0, 0, 0); /* Choose your preferred color */
    color: #000000;
    margin: 10px 10;
    border-radius: 2px;
  }

/* Additional style to ensure the column aligns content properly */
.column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .leaderboard-button-container {
    position: absolute;
    top: 1%;
    right: 1%;
    z-index: 1000;
  }
  
.leaderboard-button {
    background: #ffffff;
    color: black;
    border: none;
    padding: 16px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;

    font-family: "Noto Emoji", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 30px;
    font-style: normal;
    color: rgb(0, 0, 0);
    user-select: none
}

.leaderboard-button:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.leaderboard-button:active {
    transform: scale(0.95);
}

.shop-button-container {
    position: absolute;
    top: 1%;
    left: 1%;
    z-index: 1000;
  }
  
.shop-button {
    background: #ffffff;
    color: black;
    border: none;
    padding: 16px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;

    font-family: "Noto Emoji", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 30px;
    font-style: normal;
    color: rgb(0, 0, 0);
    user-select: none
}

.shop-button:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.shop-button:active {
    transform: scale(0.95);
}

/* Styles pour le bouton de skin */
.skin-button-container {
    position: absolute;
    top: 1%;
    left: 1%;
    z-index: 1000;
}
  
.skin-button {
    background: #ffffff;
    color: black;
    border: none;
    padding: 16px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;

    font-family: "Noto Emoji", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 30px;
    font-style: normal;
    color: rgb(0, 0, 0);
    user-select: none
}

.skin-button:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.skin-button:active {
    transform: scale(0.95);
}

/* Styles pour le bouton Discord */
.discord-button-container {
    position: absolute;
    top: 1%;
    right: 15%;
    z-index: 1000;
}
  
.discord-button {
    background: #ffffff;
    color: black;
    border: none;
    padding: 16px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;

    font-family: "Noto Emoji", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 30px;
    font-style: normal;
    color: rgb(0, 0, 0);
    user-select: none
}

.discord-button:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.discord-button:active {
    transform: scale(0.95);
}

/* Styles pour le modal des skins */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 20px;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
}

.close {
    color: #000000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #555;
    text-decoration: none;
}

.skins-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.skin-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 2px solid #000000;
    border-radius: 8px;
    width: 200px;
}

.skin-preview {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.select-skin-btn, .unlock-skin-btn {
    margin-top: 10px;
    padding: 8px 16px;
    border: 2px solid #000000;
    border-radius: 8px;
    background-color: var(--theme-color);
    cursor: pointer;
    font-weight: bold;
}

.select-skin-btn:hover, .unlock-skin-btn:hover {
    transform: scale(1.05);
}

.select-skin-btn.selected {
    background-color: #ffffff;
}

/* Styles pour les skins */
body.skin-default {
    --theme-color: #FFE0FA;
}

body.skin-white {
    --theme-color: #F0F0F0;
}

/* Ajoutez ces styles à la fin de votre fichier CSS */
.left-column {
    transition: width 0.3s ease-out, opacity 0.3s ease-out;
    width: 30%;
    min-width: 250px;
    opacity: 1;
    overflow: hidden;
}

.left-column.hidden {
    width: 0;
    min-width: 0;
    padding: 0;
    opacity: 0;
    border: none;
}

/* État réduit */
.left-column.collapsed {
    width: 0;
    opacity: 0;
}

/* Pour éviter que les enfants débordent pendant l'animation */
.left-column > * {
    transition: opacity 0.3s ease;
}
.left-column.collapsed > * {
    opacity: 0;
    pointer-events: none;
}


/* Styles pour la colonne de gauche */
.column:nth-child(1) {
    flex: 0 0 30%;
    width: 30%;
    max-width: 30%;
    min-width: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background-color: #ffffff;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    position: relative;
    opacity: 1;
    overflow: auto;
    box-sizing: border-box;
    overflow-x: visible;
}

.column-content {
    padding: var(--column-content-padding-top) var(--column-content-padding-right)
             var(--column-content-padding-bottom) var(--column-content-padding-left);
    box-sizing: border-box;  /* Pour que le padding ne déborde pas */
    min-height: 100%;        /* Pour forcer le remplissage si besoin */
    width: var(--column-content-width);
  }


/* Style quand la colonne est réduite */
.column:nth-child(1).collapsed {
    flex: 0 0 0;
    width: 0;
    max-width: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: none;
    opacity: 0;
    pointer-events: none;
}

.gros-donut-font {
    font-family: "Noto Emoji", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 60px;
    font-style: normal;
    color: rgb(0, 0, 0);
    user-select: none
}

#donut-tooltip {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    color: rgb(0, 0, 0);
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 20px;
    z-index: 1000;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;

    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
}

.donut-tooltip-emoji {
    font-family: "Noto Emoji", sans-serif !important;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 20px;
    font-style: normal;
    color: rgb(0, 0, 0);
    user-select: none
}

.donut-tooltip-texte {
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 20px;
    font-style: normal;
    color: rgb(0, 0, 0);
    user-select: none;
}

.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.tutorial-popup {
    background-color: var(--theme-color);
    border-radius: 15px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);

    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
}

.tutorial-gif {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    margin-bottom: 15px;

    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
}

.tutorial-text {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #000000;
}

.tutorial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tutorial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    transition: background-color 0.3s;
}

.tutorial-dot.active {
    background-color: #000000;
}

.tutorial-button {
    background-color: #ffffff;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;


    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
}

.tutorial-button:hover {
    transform: scale(1.05);
}

.tutorial-button:active {
    transform: scale(0.95);
}