/* Styles responsives pour le formulaire de profil */
@media screen and (max-width: 768px) {
  /* Conteneur principal du profil */
  .profile-container {
    flex-direction: column;
  }

  /* Transformation du layout principal en une seule colonne */
  .profile-form {
    flex-direction: column;
    gap: 20px;
    min-height: auto;
  }

  /* Transformation du layout en une seule colonne */
  .profile-form-container {
    display: block;
    width: 100%;
  }

  /* Assurer que chaque tab content prend toute la largeur */
  .tab-content {
    width: 100%;
  }

  /* Ajustement de la navigation des onglets - en ligne avec seulement les icônes */
  .profile-boutons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 10px;
  }

  .tab-button {
    width: auto;
    margin-bottom: 0;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Cacher le texte des boutons et ne montrer que l'icône */
  .tab-button .tab-icon {
    margin-right: 0;
    width: 24px;
    height: 24px;
  }

  .tab-button span,
  .tab-button:not(.tab-icon) {
    font-size: 0;
    display: none;
  }

  /* On cache tout le texte à l'intérieur du bouton sauf l'icône */
  .tab-button {
    font-size: 0;
  }

  /* Les champs du formulaire prennent toute la largeur */
  .form-group {
    width: 100%;
    margin-right: 0;
  }

  /* Ajuster les images responsive */
  .profile-picture img {
    max-width: 100%;
    height: auto;
  }
}

/* Pour les très petits écrans */
@media screen and (max-width: 768px) {
  .tab-nav .profile-boutons-disconnect {
    position: sticky;
    top: 300px;
    display: flex;
    flex-direction: column;
    width: 60px;
    gap: 16px;
  }
  .tab-nav {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 16px;
  }

  .tab-nav .profile-boutons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: left;
    width: 100%;
    gap: 10px;
  }

  .profile-form .tab-nav button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-bottom: 0 !important;
  }

  .logout-button {
    margin-top: 0;
  }

  .tab-button {
    padding: 8px;
  }

  .tab-button .tab-icon {
    width: 20px;
    height: 20px;
  }

  .form-group label {
    display: block;
    margin-bottom: 5px;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
  }
}
