@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&famlly=Charm&family=Cormorant&display=swap');

/* Styles globaux */
body {
	font-family: "Charm", sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center; /* Centrage vertical */
	height: 100vh;
	margin: 0;
	background: url('/assets/images/floral-bg1.webp') no-repeat center center;
	background-size: contain; /* L'image de fond s'ajuste sans déformation */
	background-color: rgb(255, 247, 237); /* Fond blanc cassé pour éviter les bords vides */
  }
  
  /* Centrage précis de la boîte de connexion */
  .login-container {
	/*background: rgba(255, 255, 255);*/
	background: rgb(255, 247, 237, 0.65); /* Légère transparence */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3vh 2vw;
	border-radius: 1vh;
	width: 40vw;
	max-width: 400px;
	box-sizing: border-box;
	
	/* Centrage parfait */
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
  }

/* Barre de navigation */
.navbar {
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	background-color: #f9f9f9;
	padding: 0.8vh 2vw;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.05);
  }
  
  .nav_element {
	flex: 1;
	text-align: center;
  }
  
  .nav_element a {
	font-size: 1vw; /* Taille plus petite */
	text-decoration: none;
	color: black;
	font-weight: 400;
	font-family: "Great Vibes", sans-serif;
  }
  
  /* Icônes de langues */
  .language-flags {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5vw;
  }
  
  .language-flags img {
	width: 1.8vw;
	height: auto;
  }
  


h1, h2, h3, .hero-title, .hero-subtitle {
  font-family: "Cormorant", cursive;
  font-weight: 700;
}
#pass-ph{
	font-family: "Cormorant";
	font-size: 2vh;
}
#sub-ph{
	font-family: "Cormorant";
}
h2 {
  color: black;
  margin-bottom: 2vh;
  text-align: center;
}

input,
button {
  width: 100%;
  padding: 1vh;
  margin: 1vh 0;
  border-radius: 0.5vh;
  box-sizing: border-box;
}

input {
  border: 0.1vh solid #ccc;
}

button {
  background: #79b77b;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #7bd37f;
}

/* Message d'erreur */
.error-message {
  color: rgb(160, 0, 0);
}

/* Responsive */
@media (max-width: 600px) {
  .login-container {
    padding: 1.5vh;
  }

  h2 {
    font-size: 1.5em;
  }

  input,
  button {
    padding: 0.8vh;
    font-size: 1em;
  }

  .nav-title {
    font-size: 4vw;
  }

  .language-flags img {
    width: 4vw;
  }
}

@media (max-width: 600px) {
	.login-container {
	  width: 80%;
	  padding: 2vh;
	}
  }