.profile-form {
  display: flex;
  flex-direction: row;
  margin: 60px auto;
  border-radius: 8px;
  gap: 42px;
  /* Ajoutez une hauteur minimale si nécessaire */
  min-height: 100vh; /* Par exemple, pour assurer une hauteur suffisante */
}

.form-fields-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.gdpr-tab-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Styles pour les onglets */
.tab-nav {
  display: flex;
  flex-direction: column;
  width: 270px;
  gap: 16px;
}

.tab-nav .profile-boutons {
  position: sticky;
  top: 140px; /* Distance par rapport au haut de la fenêtre lors du défilement */
  display: flex;
  flex-direction: column;
  width: 270px;
  gap: 16px;
}

.tab-nav .profile-boutons-disconnect {
  position: sticky;
  top: 300px; /* Distance par rapport au haut de la fenêtre lors du défilement */
  display: flex;
  flex-direction: column;
  width: 270px;
  gap: 16px;
}

.tab-button {
  display: flex; /* Utilisez Flexbox */
  align-items: center; /* Centre verticalement les icônes et le texte */
  width: 270px;
  padding: 10px 15px;
  background-color: var(--wp--preset--color--primary-100);
  color: var(--wp--preset--color--on-primary-100);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s;
  text-decoration: none;
}

a.tab-button {
  text-decoration: none;
  color: var(--wp--preset--color--on-primary-100);
  border-radius: 7px;
  margin-top: 0;
}

.tab-button.active {
  background-color: var(--wp--preset--color--primary-200);
  color: var(--wp--preset--color--on-primary-200);
}

.tab-button:hover {
  background-color: var(--wp--preset--color--primary-300);
  color: var(--wp--preset--color--on-primary-300);
}

/* Styles pour les icônes SVG */
img.tab-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  fill: currentColor;
}

.tab-content {
  display: none;
  border-top: none;
  width: 100%;
}

.tab-content.active {
  display: block;
}

.tab-content .events-list h3 {
  margin-bottom: 4px;
  padding-bottom: 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--wp--preset--color--text);
}

/* Styles supplémentaires */
.form-group {
  margin-bottom: 15px;
}

.full-width {
  width: 100%;
}

.logout-button {
  margin-top: 20px;
}

#gdpr-delete-data-form {
  margin-bottom: 40px;
}

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

/* Styles de base pour les champs retirés : la librairie gère désormais inputs / selects / textarea / labels */

/* Styles de la modale centrée */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  color: #333;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  /*padding: 20px;*/
  z-index: 1000;
  display: none; /* Masquer par défaut */
}

.modal.show {
  display: block;
}

.modal-content {
  position: relative;
  padding: 24px 32px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--wp--preset--color--primary);
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
}

.modal-close:hover {
  color: #333;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-text {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%; /* Assurer que la liste prend toute la largeur du conteneur parent */
  list-style: none; /* Supprimer les puces de la liste */
  padding: 0; /* Supprimer le padding par défaut de la liste */
  margin: 0; /* Supprimer la marge par défaut de la liste */
}

.events-list li {
  width: 100%; /* Assurer que chaque élément de la liste prend toute la largeur du conteneur parent */
}

.event-card {
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ddd; /* Utiliser une bordure au lieu d'une ombre */
  border-radius: 8px;
  padding: 16px 16px 10px;
  gap: 16px;
  width: 100%; /* Adapter à la largeur du conteneur parent */
  transition: background-color 0.3s; /* Ajouter une transition pour l'effet de survol */
  cursor: pointer; /* Indiquer que la carte est cliquable */
  text-decoration: none;
}

.event-card:hover {
  background-color: #f0f0f0; /* Griser la carte au survol */
}

.event-image img {
  border-radius: 8px;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.event-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Assurer que les détails prennent toute la largeur disponible */
}

.event-details-header {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.event-details h4 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.event-details p {
  margin: 4px 0;
  color: #666;
}
