html, body {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* body {
  font-family: 'Poppins', sans-serif;
  background: #f0f0f0; 
  color: #9A9A9A;
  text-align: center; 
  height: 100vh; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  padding: 1rem;
  -webkit-overflow-scrolling: touch; /* scroll fluide iOS 
  margin: 0;
 text-align: initial;
} */

body {
  font-family: 'Poppins', sans-serif;
  background: #f0f0f0;
  color: #9A9A9A;
  text-align: left;
  padding: 0;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}



h1 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: #9db87f; /* Vert doux et harmonieux */
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

small {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #3b9142;
  outline: none;
}

.welcome-container {
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Ombre douce */
  padding: 2rem 0.2rem 2rem 0.2rem;
  border-radius: 12px;
  max-width: 400px; 
  width: 100%;
  text-align: center;
  display: flex;  
  flex-direction: column;  
  justify-content: center;  
  align-items: center;

}

.form-container {
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Ombre douce */
  padding: 2rem 0.2rem 2rem 0.2rem;
  border-radius: 12px;
  max-width: 400px; 
  width: 100%;
  display: flex;  
  flex-direction: column;  
  justify-content: center;  
  align-items: center;
  text-align: center;

}



.layout-wrapper {
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 1200px; 
  align-items: center;
}


.logo-header {
  text-align: left;
  margin-bottom: 1rem;
}

.logo-header img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.success {
  background-color: #e1fbe9;
  color: #257e47;
  padding: 0.8rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.warning {
  background-color: #ffe4e4;
  color: #b23232;
  padding: 0.8rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.button-group {
  margin-top: 1.5rem;
  animation: fadeIn 0.6s ease-in-out;
}

.btnStyle {
  display: inline-block;
  min-width: 150px; /* Même largeur pour tous les boutons */
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s, box-shadow 0.3s;
  text-align: center;
  text-decoration: none;
  background-color: #6b8e23; /* Vert olive plus subtil */
}

.btnStyle:hover {
  background-color: #556b2f;
}

.btnStyle-primary, .btnStyle-secondary {
  min-width: 150px; /* Taille uniforme */
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s, box-shadow 0.3s;
  margin-top: 0.5rem; /* réduit l'espace vertical */
}

.btnStyle-primary {
  background-color: #5d7b4a;
  color: white;
  border: none;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;  
}

.btnStyle-primary:hover {
  background-color: #467038;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.btnStyle-secondary {
  background-color: #9db87f;
  color: white;
  border: none;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;  
}

.btnStyle-secondary:hover {
  background-color: #8ba16f;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.checkbox-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 1rem;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #333;
}

.checkbox-wrap {
 /* display: flex; */
 /* justify-content: flex-end; */ 
  vertical-align: middle;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  cursor: pointer;  
  margin-top: 1rem;
  margin-bottom: 0.5rem; /* ou même 0.25rem ultra-serré */
}

.checkbox-wrap input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #2a6e3f;
  border-radius: 4px;
  background-color: #fff;
  position: relative;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.checkbox-wrap input[type="checkbox"]:checked {
  background-color: #2a6e3f;
  transform: scale(1.05);
}

.checkbox-wrap input[type="checkbox"]::after {
  content: "\2713";
  color: #fff;
  font-size: 14px;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  visibility: hidden;
}

.checkbox-wrap input[type="checkbox"]:checked::after {
  visibility: visible;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
