body.no-scroll {
  overflow: hidden;
}

/* Overlay */
.login-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Boîte centrale */
.login-modal-dialog {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fadeSlideUp 0.3s ease-out;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  margin: auto;
}

/* Contenu */
.login-modal-content {
  padding: 2rem;
}

/* Bouton fermer */
.login-modal-close {
  position: absolute;
  top: 6px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0px;
}
.login-modal-close:hover { color: #333; }

/* Onglets */
.login-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  background: #f5f7fa;
  border-radius: 8px;
  overflow: hidden;
}
.login-tabs .tab {
  flex: 1;
  text-align: center;
  padding: 0.8rem;
  cursor: pointer;
  background: transparent;
  border: none;
  font-weight: 600;
  color: #444;
  transition: all 0.2s;
}
.login-tabs .tab.active {
  background: var(--wp--preset--color--primary, #0073aa);
  color: #fff;
}

/* Panneaux */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Champs de formulaire */
.login-modal input[type="text"],
.login-modal input[type="email"],
.login-modal input[type="password"],
.login-modal input[type="tel"],
.login-modal textarea {
  width: 100%;
  padding: 0px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  min-height: 35px;
}

/* Boutons */
.login-modal button[type="submit"],
.login-modal .button-primary {
  background: var(--wp--preset--color--primary, #0073aa);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.login-modal button[type="submit"]:hover,
.login-modal .button-primary:hover {
  background: #005f8d;
}

/* Header buttons */

.btn-login, .btn-logout {
  /* background: var(--wp--preset--color--primary, #0073aa); */
  background: var(--wp--preset--color--primary);
  color: #fff;
  border-radius: 20px;
  padding: 0.4rem 1rem;
  border: 1px solid;
  font-weight: 500;
  transition: all 0.2s;
  margin-left: 15px;
}
.btn-login:hover, .btn-logout:hover {
  background: #fff;
}
.top-user {
  position: relative;
  top: 9px;
}

/* Animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-username, .login-password {
  margin-bottom: 1em;	
}

.login-submit {
  margin-bottom: 0em;	
}

.em-register-form p,
.custom-login-form p {
  margin-bottom: 1em;	
}

.em-register-form-subtitle {
  margin-bottom: -0.4em !important;	
}

/* Style pour le spinner */
.login-spinner {
    margin-left: 10px;
    color: #0073aa; /* Couleur par défaut de WordPress */
}

/* Style pour le message d'erreur */
.login-error {
    margin: 10px 0;
    padding: 10px;
    background: #ffebe8;
    border: 1px solid #c00;
    border-radius: 4px;
    display: none;
}

.header-t .right #login-btn-cnx-text {
	padding-left: 6px;
}

.user-hello-short {
	display: none;
}

/* ===== RESPONSIVE HEADER ===== */
/* Pour les écrans de smartphone (max-width: 767px) */
@media only screen and (max-width: 767px) {
    /* Masque le texte du bouton de connexion (garde l'icône) */
    .header-t .right #login-btn-cnx-text {
        display: none !important;
    }

    /* Aligne les réseaux sociaux et le bouton de connexion sur la même ligne */
    .header-t .container {
        display: flex;
		margin: 0px;
		padding: 0 5px;		
    }

    .header-t .left {
        text-align: left !important;
		width: 30% !important;
    }

    .header-t .right {
        text-align: right !important;
    }

	.user-hello-short {
		display: inline;
	}

	.user-hello-full {
		display: none;
	}

/*
    .header-t .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px; /* Ajoute un peu d'espace sur les côtés */
    }
*/	
/*
    .header-t .left,
    .header-t .right {
        display: flex;
        align-items: center;
    }
*/

    /* Style pour les réseaux sociaux (alignés à gauche) */
/*
    .header-t .left {
        order: 1; /* Place les réseaux sociaux à gauche */
        margin-right: auto; /* Pousse le bouton de connexion à droite */
    }
*/

    /* Style pour le bouton de connexion (aligné à droite) */
/*
    .header-t .right {
        order: 2; /* Place le bouton à droite */
    }
*/

    /* Réduit la taille du bouton de connexion sur mobile */
/*
    .header-t .right button.btn-login {
        padding: 8px 12px;
        font-size: 14px;
    }
*/

    /* Ajuste la taille des icônes sociales */
/*
    .header-t .left .fa {
        font-size: 18px;
        margin: 0 5px;
    }
*/
}
