/*
Theme Name: generatepress-child
Template: generatepress
*/

/* ===== Popup Connexion CLUPIPP ===== */

/* Conteneur principal */
#popup-connexion {
  display: none; /* caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Overlay + centrage */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
/* Quand actif, on force le flex pour le centrer */
.popup-overlay.active {
  display: flex !important;
}
/* Contenu du popup */
.popup-content {
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center;
}

/* Bouton de fermeture */
.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
}
.popup-close:hover {
  color: #ff0000;
}

/* Champs */
#form-connexion label {
  display: block;
  margin: 15px 0 5px;
  text-align: left;
  font-weight: 600;
}

#form-connexion input[type="email"],
#form-connexion input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Bouton */
#form-connexion button {
  padding: 10px 20px;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  margin-top: 10px;
}
#form-connexion button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

/* Message d’erreur */
#connexion-message {
  margin-top: 10px;
  color: red;
  font-size: 14px;
}

/* Lien mot de passe oublié */
.lost-password {
  display: inline-block;
  margin-top: 15px;
  color: #0073aa;
  text-decoration: none;
}
.lost-password:hover {
  text-decoration: underline;
}

/* Classe active */
.popup-overlay.active {
  display: flex;
}
