header {
    border-bottom: 1px solid #ccc;
    background-color: #f5eded;
    padding: 10px 30px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

.logo-button {
    display: flex;
    align-items: center;
}

.logo {
    height: 90px; /* réduit légèrement */
    margin-top: -10px; /* le remonte un peu */
}


.menu-nav {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    width: 70%;
    border: 2px solid #000;
    border-radius: 10px;
    overflow: hidden;
}

.nav-btn {
    flex: 1;
    padding: 20px 0;
    background-color: #f0f0f0;
    border: none;
    border-right: 1px solid #000;
    color: #432d2d;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.nav-btn:last-child {
    border-right: none;
}

.nav-btn:hover {
    background-color: #d2d2d2;
    transform: scale(1.01);
}

.user-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
    gap: 5px;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#avatar {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

#user-name {
    font-weight: bold;
}

#emerald-count {
    font-weight: bold;
    color: #2e8b57;
}

.recharge-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    background-color: #0c8c34;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.recharge-btn:hover {
    background-color: #0a6e29;
}

.offre-text {
    font-size: 0.9rem;
    color: #6b4a4a;
    margin: 0;
    font-weight: bold; /* Offre en gras */
    text-align: center; /* Centré horizontalement */
    width: 100%; /* prend toute la largeur du bloc user */
}

#abonnement-info {
    font-weight: bold;
    color: #0d8c3d; /* vert */
    margin-left: 5px;
    font-weight: normal; /* Pour que seul "Offre" soit en gras */
}




/* pop up */

#custom-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #e2f4e2;
    color: #3d2f2f;
    border-left: 6px solid #4CAF50;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    font-weight: bold;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }
  
  .toast-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .toast-hidden {
    opacity: 0;
    pointer-events: none;
  }
  
