/* Global reset + fix overflow */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-image: url('jjh.jpg');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 500px;
  width: 90%; /* ✅ resp. sur mobile */
  background: rgba(255,255,255,0.95);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: center;
}

h2 {
  color: #333;
  font-size: 22px;
  margin-bottom: 20px;
  text-transform: uppercase;
  line-height: 1.4;
}

input[type="text"],
input[type="email"],
button {
  width: 100%;
  max-width: 100%; /* ✅ évite débordement */
  display: block;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  -webkit-appearance: none; /* iOS fix */
  appearance: none;
}

button {
  background-color: #FF5722;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #E64A19;
}

#message {
  margin-top: 20px;
  color: green;
  font-weight: bold;
}

/* ✅ Mobile friendly */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  h2 {
    font-size: 18px;
  }
}
