/* ==============================
   STYLE GLOBAL FORMULAIRES SINAÏ
   Design moderne, sobre et responsive
   ============================== */

/* ===== RESET DE BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

/* ===== STRUCTURE GÉNÉRALE ===== */
body {
  background: linear-gradient(135deg, #f8efe6, #ffeaa7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 40px 15px;
  color: #2c3e50;
}

/* ===== EN-TÊTE ===== */
header {
  width: 100%;
  max-width: 650px;
  text-align: center;
  margin-bottom: 25px;
  background: rgba(2, 165, 2, 0.884);
  color: #fff;
  padding: 25px 15px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

header h1 {
  font-size: 26px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== FORMULAIRE ===== */
form {
  background: #fff;
  width: 100%;
  max-width: 650px;
  padding: 35px 40px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

form label {
  display: block;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  margin-top: 16px;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  color: #2d3436;
  background: #fafafa;
  transition: all 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: rgba(2, 165, 2, 0.884);
  background: #fff;
  outline: none;
  box-shadow: 0 0 6px #d3540055;
}

/* ===== BOUTON ===== */
button {
  margin-top: 25px;
  background: rgba(2, 165, 2, 0.884);
  color: white;
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  letter-spacing: 0.5px;
}

button:hover {
  background: rgba(2, 165, 2, 0.884);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

button:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  header h1 {
    font-size: 22px;
  }

  form {
    padding: 25px;
  }

  form input,
  form select,
  form textarea {
    font-size: 14px;
    padding: 10px 12px;
  }

  button {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  header h1 {
    font-size: 20px;
  }

  form {
    padding: 20px;
  }

  button {
    font-size: 14px;
  }
}

/* ===== PETIT DÉTAIL VISUEL ===== */
::placeholder {
  color: #aaa;
  font-style: italic;
}

input[type="date"],
input[type="time"],
input[type="number"] {
  color-scheme: light;
}