

/* -- Enveloppe globale du header -- */
header {
    display: flex;                    /* Mise en page en flexbox */
    align-items: center; 
    text-align: center;             /* Aligne verticalement au centre */
    justify-content: space-between;   /* Espace égal entre les blocs */
    background-color: black;           
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0 20px;                  /* Marge intérieure à gauche/droite */
    width: 100%;
    box-sizing: border-box;           /* Pour inclure la bordure dans le calcul de la largeur */
    position: fixed;
    top:0px;
    z-index: 999;
  }
  .logoContainer {
    display: flex;            /* Active le mode flexbox */
    align-items: center;  
    font-family: "LtpSB";

  }
  
  /* Optionnel : contrôler la taille max de l'image */
  .logoContainer .logo img {
    max-height: 50px;
    width: auto;              /* Garde le ratio si vous limitez la hauteur */
  }
  
  /* Optionnel : espacer un peu le texte à droite de l'image */
  .logoTxt {
    margin-top: 2px;
    margin-left: -5px;        /* Ajustez selon vos préférences */
    font-size: 22px;          /* Exemple de taille du texte */
  } 
  /* -- Logo à gauche -- */
  .logo img {
    max-height: 50px;    
    height: auto;
    width: auto;
    display: flex;      /* Pour éviter les petits décalages d’images inline */
  }

  #logoTxtA{
    color: white;
  }
  #backLogoB
  {
    background: linear-gradient(11deg, rgba(255,93,133,1) 0%, rgba(63,63,255,1) 73%);
    background-clip: border-box;
    background-origin: border-box;
    border: solid 1px transparent;
    border-radius: 5px;
    margin-left: 12px;
  }

  #logoTxtB{
    background-color: black;
    border-radius: 5px;
  }

  #logoTxtB2{
    background: linear-gradient(11deg, rgba(255,93,133,1) 0%, rgba(63,63,255,1) 73%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-top: 0px;
    padding-bottom: 3px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 20px; 
  }


  
 
  
  nav ul {
    list-style: none;         /* Enlève les puces */
    margin: 0;
    padding: 0;
    display: flex;           
    align-items: center;      
    gap: 20px;  
    font-size: 0.9em;             
  }
  
  /* Style des liens */
  nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    display: inline-block;
    background-color: #333;   /* Exemple : fond gris foncé */
    color: #fff;              /* Texte blanc */
    border-radius: 4px;
           /* Coins un peu arrondis (optionnel) */
  }
  nav ul li a:hover {
    background-color: #444;   /* Survol */
  }
  
  /* -- Bouton déconnexion à droite -- */
  
  .chat-name-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); 
    top: 18px;
    /* (Optionnel) pour éviter de couper si l'écran est plus petit que 350px */
    max-width: 480px;
    text-align: center;
    color: #fff;
    border-bottom: 1px solid #007BFF;
    /* Supprimez right: 50%; */
  }
  
  
  #chatNameInput {
    font-size: 1em;
    border: none;
    
    outline: none;
    text-align: left;
    text-align: center;
    background-color: transparent;
    color: #ffffff;
  }
  
  #renameChatBtn {
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
  }
  
  #nameStatusMsg {
    font-size: 0.9em;
    color: #28a745;
  }
  
  .logoutBox {
    background-color: none;
    padding: 5px 15px;
    border-radius: 4px;
    border: 1px solid #ffffff;
    display: inline-block;
  }
  
  .logoutBox a {
    color: #fff;
    text-decoration: none;
  }
  .logoutBox a:hover {
    opacity: 0.8; /* Exemple de léger effet */
  }
  